diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-11-22 00:07:05 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-11-22 00:07:05 +0000 |
commit | a2feff6f6e67265d6246eedb1e93779a5540bfc0 (patch) | |
tree | bf99709c25a5b2d09c035aa8ead704e037ecf9a8 /sys/arch/sgi/include/vmparam.h | |
parent | cd1108ad13a0da9d29d3357b59a3a562df545780 (diff) |
Allow mips ports to override VM_{MIN,MAX}_KERNEL_ADDRESS, and provide the
address as a kernel variable for use by libkvm.
On sgi IP27 and IP30 kernels, use XKSEG instead of CKSSEG; this will allow
kernel KVM size to grow in the future if necessary.
Diffstat (limited to 'sys/arch/sgi/include/vmparam.h')
-rw-r--r-- | sys/arch/sgi/include/vmparam.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/sys/arch/sgi/include/vmparam.h b/sys/arch/sgi/include/vmparam.h index a55866983c4..210a1aebfee 100644 --- a/sys/arch/sgi/include/vmparam.h +++ b/sys/arch/sgi/include/vmparam.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vmparam.h,v 1.4 2009/10/14 20:18:26 miod Exp $ */ +/* $OpenBSD: vmparam.h,v 1.5 2009/11/22 00:07:04 miod Exp $ */ /* public domain */ #ifndef _SGI_VMPARAM_H_ #define _SGI_VMPARAM_H_ @@ -19,6 +19,24 @@ #define VM_NFREELIST 2 #define VM_FREELIST_DMA32 1 /* memory suitable for 32-bit DMA */ +/* + * On systems with may use R5000 processors, we limit the kernel virtual + * address space to KSSEG and KSEG3. + * On systems with R10000 family processors, we use the XKSEG which allows + * for a much larger virtual memory size. + * + * All Octane and Origin class systems are R10000 family based only, + * so TGT_COHERENT is safe to use so far. + */ + +#ifdef TGT_COHERENT +#define VM_MIN_KERNEL_ADDRESS ((vaddr_t)0xc000000000000000L) +#define VM_MAX_KERNEL_ADDRESS ((vaddr_t)0xc000000040000000L) +#else +#define VM_MIN_KERNEL_ADDRESS ((vaddr_t)0xffffffffc0000000L) +#define VM_MAX_KERNEL_ADDRESS ((vaddr_t)0xfffffffffffff000L) +#endif + #include <mips64/vmparam.h> #endif /* _SGI_VMPARAM_H_ */ |