summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2003-03-25 22:10:20 +0000
committerJason Wright <jason@cvs.openbsd.org>2003-03-25 22:10:20 +0000
commit1f40380840173b1330c1ef37c53b4c31b0aea5be (patch)
tree312f6b120cefc0ed735370bfd2bb7b21c08f295e /sys/arch/sparc64/dev
parentb724670ff75d5fb87d4b36e3f8173f1b1aa389bd (diff)
Clear interrupts (set to IDLE) as they are established.
ok deraadt
Diffstat (limited to 'sys/arch/sparc64/dev')
-rw-r--r--sys/arch/sparc64/dev/psycho.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/sparc64/dev/psycho.c b/sys/arch/sparc64/dev/psycho.c
index 98a4ce8c10f..41fc0647006 100644
--- a/sys/arch/sparc64/dev/psycho.c
+++ b/sys/arch/sparc64/dev/psycho.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: psycho.c,v 1.29 2003/03/06 08:26:08 henric Exp $ */
+/* $OpenBSD: psycho.c,v 1.30 2003/03/25 22:10:19 jason Exp $ */
/* $NetBSD: psycho.c,v 1.39 2001/10/07 20:30:41 eeh Exp $ */
/*
@@ -1114,6 +1114,10 @@ psycho_intr_establish(bus_space_tag_t t, bus_space_tag_t t0, int ihandle,
DPRINTF(PDB_INTR, ("; reread intrmap = %016qx",
(unsigned long long)(intrmap = *intrmapptr)));
}
+ if (intrclrptr) {
+ /* set state to IDLE */
+ *intrclrptr = 0;
+ }
return (ih);
}