summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhpa <hpa>2004-12-22 07:37:31 +0000
committerhpa <hpa>2004-12-22 07:37:31 +0000
commitf6d13ecb05fe0bd7b03ebd5aeb211e882facddfd (patch)
tree1104ba46afc167aa867360a3756713301fa81d51
parent5ff128de7b2f3d200c10bf3ff02877e3cb421c13 (diff)
downloadsyslinux-f6d13ecb05fe0bd7b03ebd5aeb211e882facddfd.tar.gz
Fix bugs in the conversion to partition-relative sector numbers
-rw-r--r--ldlinux.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/ldlinux.asm b/ldlinux.asm
index 15250b38..583106ba 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