Fix the offset asserts so they actually work.
authorhpa <hpa>
Thu, 5 Apr 2001 06:27:50 +0000 (06:27 +0000)
committerhpa <hpa>
Thu, 5 Apr 2001 06:27:50 +0000 (06:27 +0000)
ldlinux.asm

index 4f02fa0..d08bbd2 100644 (file)
@@ -736,9 +736,10 @@ gls_nonewcyl:      sub cx,si               ; First sector on new track
 
 bailmsg:       db 'Boot failed', 0Dh, 0Ah, 0
 
-bs_checkpt     equ $                   ; Must be <= 1EFh
+bs_checkpt     equ $                   ; Must be <= 7DEFh
 
-%if (bs_checkpt-$$) > 0x1EF
+bs_checkpt_off equ ($-$$)
+%if bs_checkpt_off > 1EFh
 %error "Boot sector overflow"
 %endif
 
@@ -1047,9 +1048,10 @@ safedumpregs:
                jmp dumpregs
 %endif
 
-rl_checkpt     equ $                           ; Must be <= 400h
+rl_checkpt     equ $                           ; Must be <= 8000h
 
-%if (rl_checkpt-$$) > 0x400
+rl_checkpt_off equ ($-$$)
+%if rl_checkpt_off > 400h
 %error "Sector 1 overflow"
 %endif