aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhpa <hpa>2001-12-14 08:23:21 +0000
committerhpa <hpa>2001-12-14 08:23:21 +0000
commitb8dbb462b18fbae9ee5577904a45029cb80d16bd (patch)
treeb160cf20a92a642f01f25e098880aaaf5a8e0ff0
parent7d14670cf72185fe74cbc7d7c98cfdd447ea41b2 (diff)
downloadsyslinux-b8dbb462b18fbae9ee5577904a45029cb80d16bd.tar.gz
syslinux-b8dbb462b18fbae9ee5577904a45029cb80d16bd.tar.xz
syslinux-b8dbb462b18fbae9ee5577904a45029cb80d16bd.zip
Correct the computation of the various termssyslinux-1.65-pre11
-rw-r--r--memdisk/msetup.c14
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;
}
}
}