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.
This commit is contained in:
Peter Grehan 2005-03-07 01:52:24 +00:00
parent e2f6d6e28a
commit e38509dc05
2 changed files with 6 additions and 6 deletions

View File

@ -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.

View File

@ -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.