Corrections to self-loading sequence; we now get that far at least
authorhpa <hpa>
Thu, 16 Dec 2004 07:47:11 +0000 (07:47 +0000)
committerhpa <hpa>
Thu, 16 Dec 2004 07:47:11 +0000 (07:47 +0000)
ldlinux.asm

index 66c031b..8b43616 100644 (file)
@@ -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