summaryrefslogtreecommitdiff
path: root/sys/arch/mips64/include/cpu.h
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>2004-09-09 22:21:42 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>2004-09-09 22:21:42 +0000
commit6c3ce8600ec35afdbb168a95bc787f1a247392a0 (patch)
tree8bbdd687c55e26c2328a5c3c96089c62e77b27ab /sys/arch/mips64/include/cpu.h
parent3e2fc1bb21e67310e10ff7c7ea903a52d1d146c5 (diff)
these should have gone in with the other 64 bit changes
Diffstat (limited to 'sys/arch/mips64/include/cpu.h')
-rw-r--r--sys/arch/mips64/include/cpu.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/sys/arch/mips64/include/cpu.h b/sys/arch/mips64/include/cpu.h
index 7c24e6d6756..087f5899398 100644
--- a/sys/arch/mips64/include/cpu.h
+++ b/sys/arch/mips64/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.4 2004/08/15 12:07:28 pefo Exp $ */
+/* $OpenBSD: cpu.h,v 1.5 2004/09/09 22:21:41 pefo Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -51,10 +51,17 @@
#include <machine/psl.h>
+#ifdef __LP64__
#define KSEG0_BASE 0xffffffff80000000
#define KSEG1_BASE 0xffffffffa0000000
#define KSSEG_BASE 0xffffffffc0000000
#define KSEG3_BASE 0xffffffffe0000000
+#else
+#define KSEG0_BASE 0x80000000
+#define KSEG1_BASE 0xa0000000
+#define KSSEG_BASE 0xc0000000
+#define KSEG3_BASE 0xe0000000
+#endif
#define KSEG_SIZE 0x20000000
#define KSEG0_TO_PHYS(x) ((u_long)(x) & 0x1fffffff)
@@ -157,11 +164,11 @@
/*
* Location of exception vectors.
*/
-#define RESET_EXC_VEC 0xffffffffbfc00000
-#define TLB_MISS_EXC_VEC 0xffffffff80000000
-#define XTLB_MISS_EXC_VEC 0xffffffff80000080
-#define CACHE_ERR_EXC_VEC 0xffffffff80000100
-#define GEN_EXC_VEC 0xffffffff80000180
+#define RESET_EXC_VEC (KSEG0_BASE + 0x3fc00000)
+#define TLB_MISS_EXC_VEC (KSEG0_BASE + 0x00000000)
+#define XTLB_MISS_EXC_VEC (KSEG0_BASE + 0x00000080)
+#define CACHE_ERR_EXC_VEC (KSEG0_BASE + 0x00000100)
+#define GEN_EXC_VEC (KSEG0_BASE + 0x00000180)
/*
* Coprocessor 0 registers: