projects
/
profile
/
ivi
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
879ae26
)
Shave another byte off the MBR
author
H. Peter Anvin
<hpa@zytor.com>
Wed, 11 Jul 2007 22:31:04 +0000
(15:31 -0700)
committer
H. Peter Anvin
<hpa@zytor.com>
Wed, 11 Jul 2007 22:31:04 +0000
(15:31 -0700)
mbr/mbr.S
patch
|
blob
|
history
diff --git
a/mbr/mbr.S
b/mbr/mbr.S
index
b512c11
..
1093d87
100644
(file)
--- a/
mbr/mbr.S
+++ b/
mbr/mbr.S
@@
-77,8
+77,8
@@
next:
jc 1f
cmpw $0xaa55, %bx
jne 1f
- testb $0x01, %cl
- j
z
1f
+ shrw %cx /* Bit 0 = fixed disk subset */
+ j
nc
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 */