summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>1999-02-26 04:22:04 +0000
committerArtur Grabowski <art@cvs.openbsd.org>1999-02-26 04:22:04 +0000
commit2bfb0c9ea82a95d21abddab56027c04d1df3f51f (patch)
tree7f1472b6af68a268aee42a8893d2cad9a69e05c0 /sys/arch/i386
parent03f677b3235e8f27d4d576836e7bd60c6b011b0c (diff)
cnt.foo -> uvmexp.bar in uvm
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/isa/vector.s12
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/arch/i386/isa/vector.s b/sys/arch/i386/isa/vector.s
index 225f0a62a32..0305ea09e32 100644
--- a/sys/arch/i386/isa/vector.s
+++ b/sys/arch/i386/isa/vector.s
@@ -1,4 +1,4 @@
-/* $OpenBSD: vector.s,v 1.9 1999/01/13 07:26:01 niklas Exp $ */
+/* $OpenBSD: vector.s,v 1.10 1999/02/26 04:22:03 art Exp $ */
/* $NetBSD: vector.s,v 1.32 1996/01/07 21:29:47 mycroft Exp $ */
/*
@@ -35,6 +35,12 @@
#define ICU_HARDWARE_MASK
+#if defined(UVM)
+#define MY_COUNT _C_LABEL(uvmexp)
+#else
+#define MY_COUNT _cnt
+#endif
+
/*
* These macros are fairly self explanatory. If ICU_SPECIAL_MASK_MODE is
* defined, we try to take advantage of the ICU's `special mask mode' by only
@@ -161,7 +167,7 @@ IDTVEC(fast/**/irq_num) ;\
call IH_FUN(%eax) ;\
ack(irq_num) ;\
addl $4,%esp ;\
- incl _cnt+V_INTR /* statistical info */ ;\
+ incl MY_COUNT+V_INTR /* statistical info */ ;\
popl %es ;\
popl %ds ;\
popl %edx ;\
@@ -215,7 +221,7 @@ _Xintr/**/irq_num/**/: ;\
MAKE_FRAME ;\
MASK(irq_num, icu) /* mask it in hardware */ ;\
ack(irq_num) /* and allow other intrs */ ;\
- incl _cnt+V_INTR /* statistical info */ ;\
+ incl MY_COUNT+V_INTR /* statistical info */ ;\
testb $IRQ_BIT(irq_num),_cpl + IRQ_BYTE(irq_num) ;\
jnz _Xhold/**/irq_num /* currently masked; hold it */ ;\
_Xresume/**/irq_num/**/: ;\