summaryrefslogtreecommitdiff
path: root/sys/arch/m88k
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-11-09 21:50:02 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-11-09 21:50:02 +0000
commit1f3a0aa0fc81150e541ecfad55c0bb6c49c87844 (patch)
tree42dcc78cf5ea14675c92ff00c4c3bf98448a8e60 /sys/arch/m88k
parent3657f1f4d975dc18116ded1d958d6a413a0676f7 (diff)
Kill guarded_access() - the way we map OBIO, there is no need for special
treatement of interrupt vectors variables, a simple read will do. While there, speed up the interrupt handlers a bit: - remove old debug code or only compile it if option DEBUG. - use short circuits for setipl() if we know interrupts are disabled at this point: there is no need playing with the psr in these cases.
Diffstat (limited to 'sys/arch/m88k')
-rw-r--r--sys/arch/m88k/m88k/trap.c36
1 files changed, 1 insertions, 35 deletions
diff --git a/sys/arch/m88k/m88k/trap.c b/sys/arch/m88k/m88k/trap.c
index 57e7df4af7d..aa044746c15 100644
--- a/sys/arch/m88k/m88k/trap.c
+++ b/sys/arch/m88k/m88k/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.13 2004/11/08 16:39:31 miod Exp $ */
+/* $OpenBSD: trap.c,v 1.14 2004/11/09 21:49:56 miod Exp $ */
/*
* Copyright (c) 2004, Miodrag Vallat.
* Copyright (c) 1998 Steve Murphree, Jr.
@@ -213,11 +213,6 @@ m88100_trap(unsigned type, struct trapframe *frame)
int sig = 0;
extern struct vm_map *kernel_map;
-#ifdef MVME188 /* XXX - only MVME188 needs guarded_access() */
- extern caddr_t guarded_access_start;
- extern caddr_t guarded_access_end;
- extern caddr_t guarded_access_bad;
-#endif
uvmexp.traps++;
if ((p = curproc) == NULL)
@@ -319,35 +314,6 @@ m88100_trap(unsigned type, struct trapframe *frame)
#endif
switch (pbus_type) {
-#ifdef MVME188 /* XXX - only MVME188 needs guarded_access() */
- case CMMU_PFSR_BERROR:
- /*
- * If it is a guarded access, bus error is OK.
- */
- if ((frame->tf_sxip & XIP_ADDR) >=
- (unsigned)&guarded_access_start &&
- (frame->tf_sxip & XIP_ADDR) <=
- (unsigned)&guarded_access_end) {
- frame->tf_snip =
- ((unsigned)&guarded_access_bad ) | NIP_V;
- frame->tf_sfip =
- ((unsigned)&guarded_access_bad + 4) | FIP_V;
- frame->tf_sxip = 0;
- /* We sort of resolved the fault ourselves
- * because we know where it came from
- * [guarded_access()]. But we must still think
- * about the other possible transactions in
- * dmt1 & dmt2. Mark dmt0 so that
- * data_access_emulation skips it. XXX smurph
- */
- frame->tf_dmt0 |= DMT_SKIP;
- data_access_emulation((unsigned *)frame);
- frame->tf_dpfsr = 0;
- frame->tf_dmt0 = 0;
- return;
- }
- break;
-#endif
case CMMU_PFSR_SUCCESS:
/*
* The fault was resolved. Call data_access_emulation