summaryrefslogtreecommitdiff
path: root/ldlinux.asm
diff options
context:
space:
mode:
authorhpa <hpa>2003-04-15 21:28:18 +0000
committerhpa <hpa>2003-04-15 21:28:18 +0000
commitfa1cfa8dd0bbcd08e7df4eb569647baa67e25fe0 (patch)
tree4f82a15f8a13ba6e2e659755324264b1c1edb93c /ldlinux.asm
parentab763517436a177edc160c73656aba35db0f368d (diff)
downloadsyslinux-fa1cfa8dd0bbcd08e7df4eb569647baa67e25fe0.tar.gz
Macroize the generation of the "insufficient DOS RAM string";
Actually use the 1000h segment instead of letting it go to waste; Set comboot_seg == real_mode_seg to save 40K
Diffstat (limited to 'ldlinux.asm')
-rw-r--r--ldlinux.asm14
1 files changed, 8 insertions, 6 deletions
diff --git a/ldlinux.asm b/ldlinux.asm
index cb146b94..d6c2b05e 100644
--- a/ldlinux.asm
+++ b/ldlinux.asm
@@ -81,11 +81,11 @@ vk_end: equ $ ; Should be <= vk_size
;
; 0000h - main code/data segment (and BIOS segment)
;
-real_mode_seg equ 7000h
-fat_seg equ 5000h ; 128K area for FAT (2x64K)
-vk_seg equ 4000h ; Virtual kernels
-xfer_buf_seg equ 3000h ; Bounce buffer for I/O to high mem
-comboot_seg equ 2000h ; COMBOOT image loading zone
+real_mode_seg equ 5000h
+fat_seg equ 3000h ; 128K area for FAT (2x64K)
+vk_seg equ 2000h ; Virtual kernels
+xfer_buf_seg equ 1000h ; Bounce buffer for I/O to high mem
+comboot_seg equ real_mode_seg ; COMBOOT image loading zone
; ---------------------------------------------------------------------------
; BEGIN CODE
@@ -1360,7 +1360,9 @@ boot_prompt db 'boot: ', 0
wipe_char db BS, ' ', BS, 0
err_notfound db 'Could not find kernel image: ',0
err_notkernel db CR, LF, 'Invalid or corrupt kernel image.', CR, LF, 0
-err_noram db 'It appears your computer has less than 488K of low ("DOS")'
+err_noram db 'It appears your computer has less than '
+ asciidec dosram_k
+ db 'K of low ("DOS")'
db CR, LF
db 'RAM. Linux needs at least this amount to boot. If you get'
db CR, LF