OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
CVS: cvs.openbsd.org: src

From: Miod Vallat (miodcvs.openbsd.org)
Date: Thu May 03 2007 - 14:34:01 CDT


CVSROOT: /cvs
Module name: src
Changes by: miodcvs.openbsd.org 2007/05/03 13:34:01

Modified files:
        lib/libkvm : kvm_mips64.c
        sys/arch/mips64/include: cpu.h vmparam.h
        sys/arch/mips64/mips64: db_machdep.c mem.c pmap.c trap.c
        sys/arch/sgi/localbus: crimebus.h macebus.c
        sys/arch/sgi/sgi: machdep.c

Log message:
Enable support for > 512MB of physical memory on mips64 systems, by using
XKPHYS instead of KSEG[01] for direct mappings.

Then, detect memory above 256MB on O2 by poking at the CRIME registers
(ARCbios will not report memory above 256MB, which is mapped above 1GB
physical, to the system), and add it to the UVM managed memory.

Tested on r5k, rm5200 and r10k with and without more than 256MB, matching
hinv reports in all cases. CRIME memory decoding based on a diff from
kettenis in december 2005.