aboutsummaryrefslogtreecommitdiffstats
path: root/mbr
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-02-25 14:57:11 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-02-25 14:57:11 -0800
commitf88d07e8da591b285a164b770d5bd1373556d3d2 (patch)
tree27665bd21d11d66a8b45be822519cc0528994ebb /mbr
parent65b3053a5e868708e5a746b3e120902d71a45d4b (diff)
downloadsyslinux-elf-f88d07e8da591b285a164b770d5bd1373556d3d2.tar.gz
syslinux-elf-f88d07e8da591b285a164b770d5bd1373556d3d2.tar.xz
syslinux-elf-f88d07e8da591b285a164b770d5bd1373556d3d2.zip
gptmbr: need to set %bx -> bootsec
Need to tell read_sector where to load the boot sector (unlike the MBR code, where we always loaded into 0x7c00, this code uses multiple buffers.)
Diffstat (limited to 'mbr')
-rw-r--r--mbr/gptmbr.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/mbr/gptmbr.S b/mbr/gptmbr.S
index 80b26ed0..7b5fb97a 100644
--- a/mbr/gptmbr.S
+++ b/mbr/gptmbr.S
@@ -195,6 +195,7 @@ found_part:
boot:
movl (40+16)(%si),%eax
movl (48+16)(%si),%edx
+ movw $bootsec,%bx
call read_sector
cmpw $0xaa55, (bootsec+510)
jne missing_os /* Not a valid boot sector */