diff options
author | grehan <grehan@FreeBSD.org> | 2005-03-07 01:52:24 +0000 |
---|---|---|
committer | grehan <grehan@FreeBSD.org> | 2005-03-07 01:52:24 +0000 |
commit | e685aa6ce97b7be5eb22c6df4d2362804686147d (patch) | |
tree | ab9c05941711dca99817ac50b620c4da759f5c16 /sys/powerpc | |
parent | 98946b0cc7d4fd745e0ba9dba21df33a75d3b03c (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/powerpc/aim/machdep.c | 6 | ||||
-rw-r--r-- | sys/powerpc/powerpc/machdep.c | 6 |
2 files changed, 6 insertions, 6 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. diff --git a/sys/powerpc/powerpc/machdep.c b/sys/powerpc/powerpc/machdep.c index 3e905e1..28cb3f9 100644 --- a/sys/powerpc/powerpc/machdep.c +++ b/sys/powerpc/powerpc/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. |