aboutsummaryrefslogtreecommitdiffstats
path: root/core/isolinux.asm
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-09-08 16:15:27 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-09-08 16:15:27 -0700
commit9d709522b8b2a0f0b66ba603e654a6b51065a798 (patch)
tree3a1fa76c5d0792c52fe3afd15f5a9e672049e095 /core/isolinux.asm
parent0b841a29fd306ebef1121b89bcb4f8afd2dd9848 (diff)
downloadsyslinux-9d709522b8b2a0f0b66ba603e654a6b51065a798.tar.gz
isolinux: save a few bytes to make sure we actually fit
With a long VERSION_STR, we would sometimes fail to compile. Shorten a few of the messages to make sure that doesn't happen. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/isolinux.asm')
-rw-r--r--core/isolinux.asm19
1 files changed, 7 insertions, 12 deletions
diff --git a/core/isolinux.asm b/core/isolinux.asm
index 6ea2ef3b..4833b63a 100644
--- a/core/isolinux.asm
+++ b/core/isolinux.asm
@@ -1032,8 +1032,8 @@ isolinux_str db 'isolinux: ', 0
%ifdef DEBUG_MESSAGES
startup_msg: db 'Starting up, DL = ', 0
spec_ok_msg: db 'Loaded spec packet OK, drive = ', 0
-secsize_msg: db 'Sector size appears to be ', 0
-offset_msg: db 'Loading main image from LBA = ', 0
+secsize_msg: db 'Sector size ', 0
+offset_msg: db 'Main image LBA = ', 0
size_msg: db 'Sectors to load = ', 0
loaded_msg: db 'Loaded boot image, verifying...', CR, LF, 0
verify_msg: db 'Image checksum verified.', CR, LF, 0
@@ -1043,8 +1043,8 @@ noinfotable_msg db 'No boot info table, assuming single session disk...', CR, LF
noinfoinspec_msg db 'Spec packet missing LBA information, trying to wing it...', CR, LF, 0
spec_err_msg: db 'Loading spec packet failed, trying to wing it...', CR, LF, 0
maybe_msg: db 'Found something at drive = ', 0
-alright_msg: db 'Looks like it might be right, continuing...', CR, LF, 0
-nospec_msg db 'Extremely broken BIOS detected, last ditch attempt with drive = ', 0
+alright_msg: db 'Looks reasonable, continuing...', CR, LF, 0
+nospec_msg db 'Extremely broken BIOS detected, last attempt with drive = ', 0
nothing_msg: db 'Failed to locate CD-ROM device; boot failed.', CR, LF
trysbm_msg db 'See http://syslinux.zytor.com/sbm for more information.', CR, LF, 0
diskerr_msg: db 'Disk error ', 0
@@ -1074,14 +1074,9 @@ MaxTransfer dw 32 ; Max sectors per transfer
rl_checkpt equ $ ; Must be <= 800h
-rl_checkpt_off equ ($-$$)
-%ifndef DEPEND
-%if rl_checkpt_off > 0x800
-; This only works for NASM 2.03+, but it's really nice then...
-%assign SPILL rl_checkpt_off-0x800
-%error Sector 0 overflow by SPILL bytes
-%endif
-%endif
+ ; This pads to the end of sector 0 and errors out on
+ ; overflow.
+ times 2048-($-$$) db 0
; ----------------------------------------------------------------------------
; End of code and data that have to be in the first sector