summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2005-03-04 14:26:23 +0000
committernyan <nyan@FreeBSD.org>2005-03-04 14:26:23 +0000
commitdd4d0b565925ad128efe7afe165f0f76c701b702 (patch)
tree5a972a3b6457ed61fb2dfad5cbb2cabefd291929
parent47f26123997fb8e96c9948c4fbdf6d6523dcf3a5 (diff)
downloadFreeBSD-src-dd4d0b565925ad128efe7afe165f0f76c701b702.zip
FreeBSD-src-dd4d0b565925ad128efe7afe165f0f76c701b702.tar.gz
Don't use the ptoa() to set the 'realmem' variable. Because F/pc98's policy
is to keep the same as F/i386.
-rw-r--r--sys/pc98/i386/machdep.c4
-rw-r--r--sys/pc98/pc98/machdep.c4
2 files changed, 2 insertions, 6 deletions
diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c
index 7779104..415f8bd 100644
--- a/sys/pc98/i386/machdep.c
+++ b/sys/pc98/i386/machdep.c
@@ -229,9 +229,7 @@ cpu_startup(dummy)
#endif
printf("real memory = %ju (%ju MB)\n", ptoa((uintmax_t)Maxmem),
ptoa((uintmax_t)Maxmem) / 1048576);
- /* This truncates if memory > 4GB, is this possible on PC98? */
- realmem = (long)ptoa((uintmax_t)Maxmem);
-
+ realmem = Maxmem;
/*
* Display any holes after the first chunk of extended memory.
*/
diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c
index 7779104..415f8bd 100644
--- a/sys/pc98/pc98/machdep.c
+++ b/sys/pc98/pc98/machdep.c
@@ -229,9 +229,7 @@ cpu_startup(dummy)
#endif
printf("real memory = %ju (%ju MB)\n", ptoa((uintmax_t)Maxmem),
ptoa((uintmax_t)Maxmem) / 1048576);
- /* This truncates if memory > 4GB, is this possible on PC98? */
- realmem = (long)ptoa((uintmax_t)Maxmem);
-
+ realmem = Maxmem;
/*
* Display any holes after the first chunk of extended memory.
*/
OpenPOWER on IntegriCloud