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:
936c90a
)
gptmbr: another confusion of start and end fields
author
H. Peter Anvin
<hpa@zytor.com>
Mon, 25 Feb 2008 23:31:48 +0000
(15:31 -0800)
committer
H. Peter Anvin
<hpa@zytor.com>
Mon, 25 Feb 2008 23:31:48 +0000
(15:31 -0800)
Use the start field for the boot sector address...
mbr/gptmbr.S
patch
|
blob
|
history
diff --git
a/mbr/gptmbr.S
b/mbr/gptmbr.S
index
8e8b952
..
10dfd45
100644
(file)
--- a/
mbr/gptmbr.S
+++ b/
mbr/gptmbr.S
@@
-192,8
+192,8
@@
found_part:
* partition information in memory.
*/
boot:
* partition information in memory.
*/
boot:
- movl (
40
+16)(%si),%eax
- movl (
48
+16)(%si),%edx
+ movl (
32
+16)(%si),%eax
+ movl (
36
+16)(%si),%edx
movw $bootsec,%bx
call read_sector
cmpw $0xaa55, -2(%bx)
movw $bootsec,%bx
call read_sector
cmpw $0xaa55, -2(%bx)