diff options
| author | hpa <hpa> | 2001-04-05 06:27:50 +0000 |
|---|---|---|
| committer | hpa <hpa> | 2001-04-05 06:27:50 +0000 |
| commit | 3b5fb40d23bd34474a20106ad921ea9729ebbe97 (patch) | |
| tree | f087d1008bff13676c3f18d47ee7a546d94d2a6f /ldlinux.asm | |
| parent | 3c38db2ccbffebbfb9dffade54e58f540ec34f78 (diff) | |
| download | syslinux-3b5fb40d23bd34474a20106ad921ea9729ebbe97.tar.gz | |
Fix the offset asserts so they actually work.
Diffstat (limited to 'ldlinux.asm')
| -rw-r--r-- | ldlinux.asm | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ldlinux.asm b/ldlinux.asm index 4f02fa02..d08bbd2d 100644 --- a/ldlinux.asm +++ b/ldlinux.asm @@ -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 |
