summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2009-11-25 15:22:45 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2009-11-25 15:22:45 +0000
commit64095f70dab18523608e004e32ffd36d7ec57d24 (patch)
treefef923bcf665a245458d84956db3ae916e4a4c46 /sys/arch/sparc64
parent0e3bb47758b70f259f25bcd8399fc45610e3fd58 (diff)
Clear any pending interrupts. This should not matter, since we're at splhigh(),
but I get the feeling this may be an issue for some of the schizo(4) error interrupts.
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r--sys/arch/sparc64/sparc64/intr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/sparc64/sparc64/intr.c b/sys/arch/sparc64/sparc64/intr.c
index e164046bb2c..3361086a159 100644
--- a/sys/arch/sparc64/sparc64/intr.c
+++ b/sys/arch/sparc64/sparc64/intr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: intr.c,v 1.33 2008/08/09 20:42:28 kettenis Exp $ */
+/* $OpenBSD: intr.c,v 1.34 2009/11/25 15:22:44 kettenis Exp $ */
/* $NetBSD: intr.c,v 1.39 2001/07/19 23:38:11 eeh Exp $ */
/*
@@ -263,6 +263,9 @@ intr_establish(int level, struct intrhand *ih)
q->ih_arg = ih;
}
+ if (ih->ih_clr != NULL) /* Set interrupt to idle */
+ *ih->ih_clr = INTCLR_IDLE;
+
if(ih->ih_map) {
id = CPU_UPAID;
m = *ih->ih_map;
@@ -279,9 +282,6 @@ intr_establish(int level, struct intrhand *ih)
*ih->ih_map = m;
}
- if (ih->ih_clr != NULL) /* Set interrupt to idle */
- *ih->ih_clr = INTCLR_IDLE;
-
#ifdef DEBUG
printf("\nintr_establish: vector %x pil %x mapintr %p "
"clrintr %p fun %p arg %p target %d",