summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mbr/gptmbr.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbr/gptmbr.S b/mbr/gptmbr.S
index 49414e48..cca7b479 100644
--- a/mbr/gptmbr.S
+++ b/mbr/gptmbr.S
@@ -195,7 +195,7 @@ boot:
movl (48+16)(%si),%edx
movw $bootsec,%bx
call read_sector
- cmpw $0xaa55, (bootsec+510)
+ cmpw $0xaa55, -2(%bx)
jne missing_os /* Not a valid boot sector */
movw $driveno, %sp /* driveno == bootsec-6 */
popw %dx /* dl -> drive number */