summaryrefslogtreecommitdiff
path: root/ldlinux.asm
diff options
context:
space:
mode:
authorhpa <hpa>2004-12-16 07:47:11 +0000
committerhpa <hpa>2004-12-16 07:47:11 +0000
commitc82ba595172394c3f2e744cc35231f7c7dee83df (patch)
tree8166b1019ec3763aa6f672e32cc61b80af981c65 /ldlinux.asm
parentaf2500694a28ed6e36cf21b81ea054c013b1ed41 (diff)
downloadsyslinux-c82ba595172394c3f2e744cc35231f7c7dee83df.tar.gz
Corrections to self-loading sequence; we now get that far at least
Diffstat (limited to 'ldlinux.asm')
-rw-r--r--ldlinux.asm4
1 files changed, 3 insertions, 1 deletions
diff --git a/ldlinux.asm b/ldlinux.asm
index 66c031b9..8b436163 100644
--- a/ldlinux.asm
+++ b/ldlinux.asm
@@ -742,6 +742,8 @@ load_rest:
.chunk_ready:
call getlinsecsr
+ shl bp,SECTOR_SHIFT
+ add bx,bp
jmp .get_chunk
.done:
@@ -757,7 +759,7 @@ verify_checksum:
mov edx,-LDLINUX_MAGIC
.checksum:
lodsd
- sub edx,eax
+ add edx,eax
loop .checksum
and edx,edx ; Should be zero