summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k/dev/siop.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/mvme68k/dev/siop.c')
-rw-r--r--sys/arch/mvme68k/dev/siop.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/arch/mvme68k/dev/siop.c b/sys/arch/mvme68k/dev/siop.c
index 15b0f7eef53..338bff43bca 100644
--- a/sys/arch/mvme68k/dev/siop.c
+++ b/sys/arch/mvme68k/dev/siop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: siop.c,v 1.7 2000/01/06 03:21:42 smurph Exp $ */
+/* $OpenBSD: siop.c,v 1.8 2000/01/24 05:20:54 smurph Exp $ */
/*
* Copyright (c) 1994 Michael L. Hitch
@@ -1355,6 +1355,7 @@ register struct siop_softc *sc;
if (dstat & SIOP_DSTAT_SIR)
sc->sc_intcode = rp->siop_dsps;
sc->sc_istat = 0;
+
#ifdef DEBUG
if (siop_debug & 1)
printf ("%s: intr istat %x dstat %x sstat0 %x\n",
@@ -1363,6 +1364,12 @@ register struct siop_softc *sc;
printf ("%s: spurious interrupt? istat %x dstat %x sstat0 %x status %x\n",
sc->sc_dev.dv_xname, istat, dstat, sstat0, sc->sc_nexus->stat[0]);
}
+#else
+ if (!sc->sc_active) {
+ printf ("%s: spurious interrupt? istat %x dstat %x sstat0 %x status %x\n",
+ sc->sc_dev.dv_xname, istat, dstat, sstat0, sc->sc_nexus->stat[0]);
+ return;
+ }
#endif
#ifdef DEBUG