aboutsummaryrefslogtreecommitdiffstats
path: root/mbr
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-07-11 15:45:49 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-07-11 15:45:49 -0700
commit1d5d9461937c5f6a117012ea5fdafbf585a1d6fe (patch)
treef520e93fbceaaf717aaf86d708fefd3594b9a6a1 /mbr
parent03fa9f6ac11a5c6d546e2caa3cb07c3aec729a1e (diff)
downloadlwip-1d5d9461937c5f6a117012ea5fdafbf585a1d6fe.tar.gz
lwip-1d5d9461937c5f6a117012ea5fdafbf585a1d6fe.tar.xz
lwip-1d5d9461937c5f6a117012ea5fdafbf585a1d6fe.zip
Shave two more bytes off the MBR
Diffstat (limited to 'mbr')
-rw-r--r--mbr/mbr.S7
1 files changed, 3 insertions, 4 deletions
diff --git a/mbr/mbr.S b/mbr/mbr.S
index cb8f6dc3..7597d795 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