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:
45ba765
)
gptmbr: fix confusion between start and end fields
author
H. Peter Anvin
<hpa@zytor.com>
Mon, 25 Feb 2008 23:29:47 +0000
(15:29 -0800)
committer
H. Peter Anvin
<hpa@zytor.com>
Mon, 25 Feb 2008 23:29:47 +0000
(15:29 -0800)
Fix a case of bad confusion of the start and end fields
(length = end-start+1, so we can't easily reuse the load of the start
field.)
mbr/gptmbr.S
patch
|
blob
|
history
diff --git
a/mbr/gptmbr.S
b/mbr/gptmbr.S
index
8bc5e41
..
8e8b952
100644
(file)
--- a/
mbr/gptmbr.S
+++ b/
mbr/gptmbr.S
@@
-173,10
+173,12
@@
found_part:
stosl
movb $0xee,%al
stosl
- movl
40
(%si),%eax
- movl
48
(%si),%edx
+ movl
32
(%si),%eax
+ movl
36
(%si),%edx
call saturate_stosl /* Partition start */
+ movl 40(%si),%eax
+ movl 48(%si),%edx
subl 32(%si),%eax
sbbl 36(%si),%edx
call inc64