aboutsummaryrefslogtreecommitdiffstats
path: root/mbr/mbr.S
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-07-11 15:31:04 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-07-11 15:31:04 -0700
commit435fa5c5f510616d9490b2c4585d4212ad2edc3a (patch)
tree84f2813c090b7763a36f4a8ff249bd6c0707287b /mbr/mbr.S
parent879ae26f225f4d16ff75f7f380f14f12e95051f6 (diff)
downloadsyslinux-elf-435fa5c5f510616d9490b2c4585d4212ad2edc3a.tar.gz
syslinux-elf-435fa5c5f510616d9490b2c4585d4212ad2edc3a.tar.xz
syslinux-elf-435fa5c5f510616d9490b2c4585d4212ad2edc3a.zip
Shave another byte off the MBR
Diffstat (limited to 'mbr/mbr.S')
-rw-r--r--mbr/mbr.S6
1 files changed, 4 insertions, 2 deletions
diff --git a/mbr/mbr.S b/mbr/mbr.S
index b512c119..1093d87f 100644
--- a/mbr/mbr.S
+++ b/mbr/mbr.S
@@ -77,8 +77,8 @@ next:
jc 1f
cmpw $0xaa55, %bx
jne 1f
- testb $0x01, %cl
- jz 1f
+ shrw %cx /* Bit 0 = fixed disk subset */
+ jnc 1f
/* We have EBIOS; patch in a jump to read_sector_ebios */
movw $0xeb+((read_sector_ebios-read_sector_cbios-2)<< 8), (read_sector_cbios)
@@ -288,7 +288,9 @@ too_many_active_msg:
.ascii "Multiple active partitions."
.byte 0
+#ifndef NO_ALIGN
.balign 4
+#endif
dapa:
.short 16 /* Size of packet */
.short 1 /* Sector count */