summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorniallo <niallo@openbsd.org>2006-12-14 05:02:29 +0000
committerniallo <niallo@openbsd.org>2006-12-14 05:02:29 +0000
commit274c8d911112942dc9bdd8d541608a4107d53b85 (patch)
tree5c4820f0f6b31de7b27a9f8bf2f0eb92bf4a967f
parentPer the new policy with respect to short header files contaning only (diff)
downloadwireguard-openbsd-274c8d911112942dc9bdd8d541608a4107d53b85.tar.xz
wireguard-openbsd-274c8d911112942dc9bdd8d541608a4107d53b85.zip
- enable nested interrupts on zaurus. most obvious side-effect of this is
likely that interrupts are properly counted in kern.cp_time sysctl. so top(1) et al will show a value for time spent in interrupts. tested by many, ok drahn@
-rw-r--r--sys/arch/arm/xscale/pxa2x0_intr.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/arch/arm/xscale/pxa2x0_intr.c b/sys/arch/arm/xscale/pxa2x0_intr.c
index 48842d81eed..5e9aafb3c28 100644
--- a/sys/arch/arm/xscale/pxa2x0_intr.c
+++ b/sys/arch/arm/xscale/pxa2x0_intr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pxa2x0_intr.c,v 1.13 2006/03/07 22:35:57 uwe Exp $ */
+/* $OpenBSD: pxa2x0_intr.c,v 1.14 2006/12/14 05:02:29 niallo Exp $ */
/* $NetBSD: pxa2x0_intr.c,v 1.5 2003/07/15 00:24:55 lukem Exp $ */
/*
@@ -225,9 +225,9 @@ pxa2x0_irq_handler(void *arg)
if (saved_spl_level < extirq_level[irqno])
pxa2x0_setipl(extirq_level[irqno]);
-#ifdef notyet
/* Enable interrupt */
-#endif
+ enable_interrupts(I32_bit);
+
#ifndef MULTIPLE_HANDLERS_ON_ONE_IRQ
(* handler[irqno].func)(
handler[irqno].arg == 0
@@ -241,9 +241,8 @@ pxa2x0_irq_handler(void *arg)
}
#endif
-#ifdef notyet
/* Disable interrupt */
-#endif
+ disable_interrupts(I32_bit);
irqbits &= ~(1<<irqno);
}