summaryrefslogtreecommitdiff
path: root/cpuinit.inc
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 /cpuinit.inc
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 'cpuinit.inc')
-rw-r--r--cpuinit.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpuinit.inc b/cpuinit.inc
index b63ae64d..f64623ed 100644
--- a/cpuinit.inc
+++ b/cpuinit.inc
@@ -27,8 +27,12 @@ check_escapes:
;
; Now check that there is sufficient low (DOS) memory
;
+; NOTE: Linux doesn't use all of real_mode_seg, but we use the same
+; segment for COMBOOT images, which can use all 64K
+;
+dosram_k equ (real_mode_seg+0x1000) >> 6 ; Minimum DOS memory (K)
int 12h
- cmp ax,(real_mode_seg+0xa00) >> 6
+ cmp ax,dosram_k
jae enough_ram
mov si,err_noram
call writestr