From 1f40380840173b1330c1ef37c53b4c31b0aea5be Mon Sep 17 00:00:00 2001 From: Jason Wright Date: Tue, 25 Mar 2003 22:10:20 +0000 Subject: Clear interrupts (set to IDLE) as they are established. ok deraadt --- sys/arch/sparc64/dev/psycho.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/arch/sparc64/dev') 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); } -- cgit v1.2.3