From f6d13ecb05fe0bd7b03ebd5aeb211e882facddfd Mon Sep 17 00:00:00 2001 From: hpa Date: Wed, 22 Dec 2004 07:37:31 +0000 Subject: [PATCH] Fix bugs in the conversion to partition-relative sector numbers --- ldlinux.asm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ldlinux.asm b/ldlinux.asm index 15250b3..583106b 100644 --- a/ldlinux.asm +++ b/ldlinux.asm @@ -328,7 +328,7 @@ eddcheck: ; ; We have EDD support... ; - mov byte [getlinsec+1],getlinsec_ebios-(getlinsec+2) + mov byte [getlinsec.jmp+1],getlinsec_ebios-(getlinsec.jmp+2) .noedd: ; @@ -423,7 +423,7 @@ getonesec: ; getlinsec: add eax,[bsHidden] ; Add partition offset - jmp strict short getlinsec_cbios ; This is patched +.jmp: jmp strict short getlinsec_cbios ; This is patched ; ; getlinsec_ebios: @@ -774,7 +774,7 @@ genfatinfo: add edx,eax mov [EndSector],edx - add eax,[bxResSectors] + mov eax,[bxResSectors] mov [FAT],eax ; Beginning of FAT mov edx,[bxFATsecs] and dx,dx -- 2.7.4