From: H. Peter Anvin Date: Wed, 11 Jul 2007 22:45:49 +0000 (-0700) Subject: Shave two more bytes off the MBR X-Git-Tag: syslinux-3.52-pre4~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1d5d9461937c5f6a117012ea5fdafbf585a1d6fe;p=profile%2Fivi%2Fsyslinux.git Shave two more bytes off the MBR --- diff --git a/mbr/mbr.S b/mbr/mbr.S index cb8f6dc..7597d79 100644 --- a/mbr/mbr.S +++ b/mbr/mbr.S @@ -194,11 +194,10 @@ scan_partition_table: movb $4, %cl /* cx == 0 here */ 7: movb 4(%di), %al - cmpb $0x05, %al /* MS-DOS extended */ + cmpb $0x0f, %al /* 0x0f = Win9x extended */ je 8f - cmpb $0x0f, %al /* Win9x extended */ - je 8f - cmpb $0x85, %al /* Linux extended */ + andb $~0x80, %al /* 0x85 = Linux extended */ + cmpb $0x05, %al /* 0x05 = MS-DOS extended */ jne 9f /* It is an extended partition. Read the extended partition and