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:
parent
e2f6d6e28a
commit
e38509dc05
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user