diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-02-25 15:29:47 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-02-25 15:29:47 -0800 |
commit | 936c90a8528c98dc25161806777202d06fab94fd (patch) | |
tree | 573b908d0e72a7c61bfc1c0779cd8c603c2c2c15 /mbr/gptmbr.S | |
parent | 45ba7656f6bf6b46ed9e82fd257340b023f6d457 (diff) | |
download | syslinux-936c90a8528c98dc25161806777202d06fab94fd.tar.gz |
gptmbr: fix confusion between start and end fields
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.)
Diffstat (limited to 'mbr/gptmbr.S')
-rw-r--r-- | mbr/gptmbr.S | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mbr/gptmbr.S b/mbr/gptmbr.S index 8bc5e41d..8e8b952f 100644 --- 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 |