diff options
author | hpa <hpa> | 2001-12-14 08:23:21 +0000 |
---|---|---|
committer | hpa <hpa> | 2001-12-14 08:23:21 +0000 |
commit | b8dbb462b18fbae9ee5577904a45029cb80d16bd (patch) | |
tree | b160cf20a92a642f01f25e098880aaaf5a8e0ff0 | |
parent | 7d14670cf72185fe74cbc7d7c98cfdd447ea41b2 (diff) | |
download | syslinux-b8dbb462b18fbae9ee5577904a45029cb80d16bd.tar.gz |
Correct the computation of the various termssyslinux-1.65-pre11
-rw-r--r-- | memdisk/msetup.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/memdisk/msetup.c b/memdisk/msetup.c index 24282dd1..d5036d8f 100644 --- a/memdisk/msetup.c +++ b/memdisk/msetup.c @@ -143,17 +143,17 @@ void parse_mem(void) else dos_mem = ep[1].start; } - if ( ep->start <= 0x100000 && ep[1].start > 0x100000 ) { - if ( ep[1].start > 0x1000000 ) - low_mem = 0x1000000 - ep->start; + if ( ep->start <= 0x00100000 && ep[1].start > 0x00100000 ) { + if ( ep[1].start > 0x01000000 ) + low_mem = 0x01000000 - 0x00100000; else - low_mem = ep[1].start - ep->start; + low_mem = ep[1].start - 0x00100000; } - if ( ep->start <= 0x1000000 && ep[1].start > 0x1000000 ) { + if ( ep->start <= 0x01000000 && ep[1].start > 0x01000000 ) { if ( ep[1].start > 0x100000000 ) - high_mem = 0x100000000 - ep->start; + high_mem = 0x100000000 - 0x01000000; else - high_mem = ep[1].start - ep->start; + high_mem = ep[1].start - 0x01000000; } } } |