summaryrefslogtreecommitdiff
path: root/sys/arch/mips64/include/cpu.h
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>2004-09-27 19:20:50 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>2004-09-27 19:20:50 +0000
commitebb4c30d0ba37fca21a45b416ade8714393b0ac0 (patch)
tree659762f6cdfca5b38da2a5d042378b63c78bae41 /sys/arch/mips64/include/cpu.h
parent23ce51ea125bb5370965cf6b3d4a6c95f8954d4b (diff)
Rewrite parts of the interrupt system to achive:
o Remove do_pending code and take a real int instead. The performance impact seems to be very low and it simplifies the code considerably. o Allow interrupt nesting at first level. Run softints with HW ints enabled.
Diffstat (limited to 'sys/arch/mips64/include/cpu.h')
-rw-r--r--sys/arch/mips64/include/cpu.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/mips64/include/cpu.h b/sys/arch/mips64/include/cpu.h
index 57ac780dfc3..15b1352e2e3 100644
--- a/sys/arch/mips64/include/cpu.h
+++ b/sys/arch/mips64/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.7 2004/09/21 05:51:13 miod Exp $ */
+/* $OpenBSD: cpu.h,v 1.8 2004/09/27 19:20:49 pefo Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -328,12 +328,12 @@
* Arguments to hardclock and gatherstats encapsulate the previous
* machine state in an opaque clockframe.
*/
+extern int int_nest_cntr;
#define clockframe trap_frame /* Use normal trap frame */
#define CLKF_USERMODE(framep) ((framep)->sr & SR_KSU_USER)
-#define CLKF_BASEPRI(framep) ((framep)->cpl == 0)
#define CLKF_PC(framep) ((framep)->pc)
-#define CLKF_INTR(framep) (0)
+#define CLKF_INTR(framep) (int_nest_cntr > 0)
/*
* Preempt the current process if in interrupt from user mode,