summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2005-09-27 18:15:57 +0000
committerpeter <peter@FreeBSD.org>2005-09-27 18:15:57 +0000
commit9a8dd5b1cf5893468f306cb8a9ba5abb53ef4d6b (patch)
tree0de30a591eb98ed9f0a85ad1214ae6999892d34f
parent49c472297948a368761a6dc51dd6c33515e57dd8 (diff)
downloadFreeBSD-src-9a8dd5b1cf5893468f306cb8a9ba5abb53ef4d6b.zip
FreeBSD-src-9a8dd5b1cf5893468f306cb8a9ba5abb53ef4d6b.tar.gz
Don't report Maxmem as 'real memory'. It is really the highest address
available and can give the wrong impression when there are memory holes. Report the total amount of usable memory that we detected instead of the highest address.
-rw-r--r--sys/amd64/amd64/machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c
index 5345dc1..3dd9577 100644
--- a/sys/amd64/amd64/machdep.c
+++ b/sys/amd64/amd64/machdep.c
@@ -189,8 +189,8 @@ cpu_startup(dummy)
#ifdef PERFMON
perfmon_init();
#endif
- printf("real memory = %ju (%ju MB)\n", ptoa((uintmax_t)Maxmem),
- ptoa((uintmax_t)Maxmem) / 1048576);
+ printf("usable memory = %ju (%ju MB)\n", ptoa((uintmax_t)physmem),
+ ptoa((uintmax_t)physmem) / 1048576);
realmem = Maxmem;
/*
* Display any holes after the first chunk of extended memory.
OpenPOWER on IntegriCloud