aboutsummaryrefslogtreecommitdiffstats
path: root/mbr/gptmbr.S
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-02-25 15:05:02 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-02-25 15:05:02 -0800
commit1594a5c007f2d520c9155628ea13f788a2ace446 (patch)
treebe27e056ca49d088732f08bf721e9cd50ef5b3c4 /mbr/gptmbr.S
parent303d00101fe01c3da23e9d99d9cc15532e43a698 (diff)
downloadsyslinux.git-1594a5c007f2d520c9155628ea13f788a2ace446.tar.gz
syslinux.git-1594a5c007f2d520c9155628ea13f788a2ace446.tar.xz
syslinux.git-1594a5c007f2d520c9155628ea13f788a2ace446.zip
gptmbr: offsets into phdr are decimal, not hex
The offsets into phdr, from the EFI spec, are in decimal, not hex.
Diffstat (limited to 'mbr/gptmbr.S')
-rw-r--r--mbr/gptmbr.S8
1 files changed, 4 insertions, 4 deletions
diff --git a/mbr/gptmbr.S b/mbr/gptmbr.S
index b042cbf3..fa0ae2c4 100644
--- a/mbr/gptmbr.S
+++ b/mbr/gptmbr.S
@@ -122,8 +122,8 @@ next:
/* Number of partition sectors */
/* We assume the partition table is 32K or less, and that
the sector size is 512. */
- movw (phdr+0x80),%cx /* NumberOfPartitionEntries */
- movw (phdr+0x84),%ax /* SizeOfPartitionEntry */
+ movw (phdr+80),%cx /* NumberOfPartitionEntries */
+ movw (phdr+84),%ax /* SizeOfPartitionEntry */
pushw %ax
pushw %cx
mulw %cx
@@ -132,8 +132,8 @@ next:
incw %cx
/* Starting LBA of partition array */
- movl (phdr+0x72),%eax
- movl (phdr+0x76),%edx
+ movl (phdr+72),%eax
+ movl (phdr+76),%edx
pushw %bx
get_ptab: