diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-05-03 19:34:02 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-05-03 19:34:02 +0000 |
commit | 1d129884bc49d41d473d6f2decdc90e6cab9d6ee (patch) | |
tree | 910e16374d6d542cce48bfea72bd39041b6a3d21 /sys/arch/sgi/localbus/crimebus.h | |
parent | 615596163a04038381e3aa3bdee5b62150be1813 (diff) |
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.
Diffstat (limited to 'sys/arch/sgi/localbus/crimebus.h')
-rw-r--r-- | sys/arch/sgi/localbus/crimebus.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/sgi/localbus/crimebus.h b/sys/arch/sgi/localbus/crimebus.h index 631a85ffb65..8eb35227c9b 100644 --- a/sys/arch/sgi/localbus/crimebus.h +++ b/sys/arch/sgi/localbus/crimebus.h @@ -1,4 +1,4 @@ -/* $OpenBSD: crimebus.h,v 1.4 2004/08/11 09:14:07 xsa Exp $ */ +/* $OpenBSD: crimebus.h,v 1.5 2007/05/03 19:34:00 miod Exp $ */ /* * Copyright (c) 2003-2004 Opsycon AB (www.opsycon.se). @@ -95,6 +95,11 @@ #define CRIME_CPU_ERROR_STAT 0x0048 #define CRIME_CPU_ERROR_ENAB 0x0050 +#define CRIME_MEM_BANK0_CONTROL 0x0208 +#define CRIME_MEM_BANK_ADDR 0x01f +#define CRIME_MEM_BANK_128MB 0x100 +#define CRIME_MAX_BANKS 8 + #define CRIME_MEM_ERROR_STAT 0x0250 #define CRIME_MEM_ERROR_ADDR 0x0258 |