summaryrefslogtreecommitdiff
path: root/sys/arch/arm
diff options
context:
space:
mode:
authorNiall O'Higgins <niallo@cvs.openbsd.org>2006-12-14 05:02:30 +0000
committerNiall O'Higgins <niallo@cvs.openbsd.org>2006-12-14 05:02:30 +0000
commit1b2927765b9e1b5878d22d803522219cdb5b8e7f (patch)
tree15192dcbd6fd045bdecac22bfcea24718035a3bb /sys/arch/arm
parentfd2c39492ec4619de35e1ab9068aebdf779122a7 (diff)
- 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@
Diffstat (limited to 'sys/arch/arm')
-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);
}