projects
/
platform
/
upstream
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea75b29
)
One more MBR byte
author
H. Peter Anvin
<hpa@zytor.com>
Wed, 11 Jul 2007 23:39:25 +0000
(16:39 -0700)
committer
H. Peter Anvin
<hpa@zytor.com>
Wed, 11 Jul 2007 23:39:25 +0000
(16:39 -0700)
mbr/mbr.S
patch
|
blob
|
history
diff --git
a/mbr/mbr.S
b/mbr/mbr.S
index
2756d7d
..
50e038a
100644
(file)
--- a/
mbr/mbr.S
+++ b/
mbr/mbr.S
@@
-122,8
+122,8
@@
read_sector_cbios:
xchgw %dx, %ax
divb (sectors)
movb %al, %dh
- incb %ah
orb %ah, %cl
+ incw %cx /* Sectors are 1-based */
movw $0x0201, %ax
jmp read_common
read_sector_ebios: