CVSROOT:        /cvs
Module name:    src
Changes by:     m...@cvs.openbsd.org    2014/02/08 06:17:40

Modified files:
        sys/arch/macppc/macppc: machdep.c ofw_machdep.c 
        sys/arch/powerpc/powerpc: pmap.c 

Log message:
Some (if not all) G5 systems use a different layout for the physical memory
information (property `reg' of the `/memory' node). Fortunately the available
physical memory information still uses the same format, so this only affects
the computation of physmem.

Detect this case and parse the information correctly, converting to the format
expected by pmap, ignoring physical memory beyond 4GB.

Compute physmem from all the physical memory information, even memory not
usable by the kernel. Let pmap not recompute physmem in pmap_bootstrap() if
physmem is != 0 upon entry.

This should allow G5 systems fitted with more than 2GB of physical memory to
report the correct amount of memory, even though the kernel will only use
the lower 2GB.

Prompted by a dmesg@ submission by Greg Marsh, owner of a 3.5GB G5

help and tweaks kettenis@, ok mpi@

Reply via email to