From e38509dc054374303d2774954580f31b8d255b8b Mon Sep 17 00:00:00 2001 From: Peter Grehan Date: Mon, 7 Mar 2005 01:52:24 +0000 Subject: [PATCH] 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. --- sys/powerpc/aim/machdep.c | 6 +++--- 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 3e905e15906a..28cb3f9d2a60 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 3e905e15906a..28cb3f9d2a60 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.