Fix the INT 18h patch offset for the RAID mode (-r) option syslinux-3.50-pre21
authorH. Peter Anvin <hpa@zytor.com>
Thu, 7 Jun 2007 23:16:30 +0000 (16:16 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 7 Jun 2007 23:16:30 +0000 (16:16 -0700)
The calculation of the INT 18h patch offset for RAID mode (-r) was
incorrect.  Fix it.

extlinux.asm
ldlinux.asm

index 70bd604..545437a 100644 (file)
@@ -563,7 +563,7 @@ MaxTransfer dw 0x007F                       ; Max transfer size
 ; This field will be filled in 0xAA55 by the installer, but we abuse it
 ; to house a pointer to the INT 16h instruction at
 ; kaboom.again, which gets patched to INT 18h in RAID mode.
-bootsignature  dw kaboom.again-$
+bootsignature  dw kaboom.again-bootsec
 
 ;
 ; ===========================================================================
index d8c8cc7..5a5216f 100644 (file)
@@ -570,7 +570,7 @@ MaxTransfer dw 0x007F                       ; Max transfer size
 ; This field will be filled in 0xAA55 by the installer, but we abuse it
 ; to house a pointer to the INT 16h instruction at
 ; kaboom.again, which gets patched to INT 18h in RAID mode.
-bootsignature  dw kaboom.again-$
+bootsignature  dw kaboom.again-bootsec
 
 ;
 ; ===========================================================================