summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/aim/machdep.c
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2005-03-07 01:52:24 +0000
committergrehan <grehan@FreeBSD.org>2005-03-07 01:52:24 +0000
commite685aa6ce97b7be5eb22c6df4d2362804686147d (patch)
treeab9c05941711dca99817ac50b620c4da759f5c16 /sys/powerpc/aim/machdep.c
parent98946b0cc7d4fd745e0ba9dba21df33a75d3b03c (diff)
downloadFreeBSD-src-e685aa6ce97b7be5eb22c6df4d2362804686147d.zip
FreeBSD-src-e685aa6ce97b7be5eb22c6df4d2362804686147d.tar.gz
physmem is a much better indicator for 'real' memory on PPC than Maxmem
since there are often significant holes in the memory map due to the kernel, loader and OFW data structures not being included: Maxmem is the highest available, so can be misleading.
Diffstat (limited to 'sys/powerpc/aim/machdep.c')
-rw-r--r--sys/powerpc/aim/machdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/powerpc/aim/machdep.c b/sys/powerpc/aim/machdep.c
index 3e905e1..28cb3f9 100644
--- a/sys/powerpc/aim/machdep.c
+++ b/sys/powerpc/aim/machdep.c
@@ -196,9 +196,9 @@ cpu_startup(void *dummy)
#ifdef PERFMON
perfmon_init();
#endif
- printf("real memory = %ld (%ld MB)\n", ptoa(Maxmem),
- ptoa(Maxmem) / 1048576);
- realmem = Maxmem;
+ printf("real memory = %ld (%ld MB)\n", ptoa(physmem),
+ ptoa(physmem) / 1048576);
+ realmem = physmem;
/*
* Display any holes after the first chunk of extended memory.
OpenPOWER on IntegriCloud