summaryrefslogtreecommitdiff
path: root/ldlinux.asm
diff options
context:
space:
mode:
authorhpa <hpa>2002-04-17 22:38:25 +0000
committerhpa <hpa>2002-04-17 22:38:25 +0000
commit288b738cd227c936f401702c796b601d142106a4 (patch)
tree31f131de3fd6cd5894f6bd8d7ac8f0e965c04b90 /ldlinux.asm
parent3032a61bbf1c67177c40757bd9a2fe1cbd471feb (diff)
downloadsyslinux-288b738cd227c936f401702c796b601d142106a4.tar.gz
Port the conventional memory relaxing from the 1.6x-1 branch.
Diffstat (limited to 'ldlinux.asm')
-rw-r--r--ldlinux.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/ldlinux.asm b/ldlinux.asm
index f6a1247b..ad2b7313 100644
--- a/ldlinux.asm
+++ b/ldlinux.asm
@@ -1116,10 +1116,10 @@ not_386:
is_386:
; Now we know it's a 386 or higher
;
-; Now check that there is at least 512K of low (DOS) memory
+; Now check that there is sufficient low (DOS) memory
;
int 12h
- cmp ax,512
+ cmp ax,(real_mode_seg+0xa00) >> 6
jae enough_ram
mov si,err_noram
call writestr
@@ -4303,7 +4303,7 @@ err_not386 db 'It appears your computer uses a 286 or lower CPU.'
db 'down the Ctrl key while booting, and I will take your'
db CR, LF
db 'word for it.', CR, LF, 0
-err_noram db 'It appears your computer has less than 512K of low ("DOS")'
+err_noram db 'It appears your computer has less than 488K of low ("DOS")'
db CR, LF
db 'RAM. Linux needs at least this amount to boot. If you get'
db CR, LF