summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>1996-04-19 05:41:52 +0000
committermickey <mickey@openbsd.org>1996-04-19 05:41:52 +0000
commit2a901d0a19a539a9e596c1a85dade9c308a62d2e (patch)
treeb470b8dc15ef3290c0451432105f008873a9c4f9 /sys
parentfrom netbsd; fix 4.4 sccs damage (diff)
downloadwireguard-openbsd-2a901d0a19a539a9e596c1a85dade9c308a62d2e.tar.xz
wireguard-openbsd-2a901d0a19a539a9e596c1a85dade9c308a62d2e.zip
Fix intrstray a bit again.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/i386/isa/isa_machdep.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/arch/i386/isa/isa_machdep.c b/sys/arch/i386/isa/isa_machdep.c
index 98be314a8c0..f37de38ba63 100644
--- a/sys/arch/i386/isa/isa_machdep.c
+++ b/sys/arch/i386/isa/isa_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isa_machdep.c,v 1.10 1996/04/18 17:12:16 niklas Exp $ */
+/* $OpenBSD: isa_machdep.c,v 1.11 1996/04/19 05:41:52 mickey Exp $ */
/* $NetBSD: isa_machdep.c,v 1.11 1996/02/28 01:49:35 cgd Exp $ */
/*-
@@ -125,19 +125,15 @@ void
isa_strayintr(irq)
int irq;
{
- static u_long strays;
-
- intrstray[irq]++;
-
/*
* Stray interrupts on irq 7 occur when an interrupt line is raised
* and then lowered before the CPU acknowledges it. This generally
* means either the device is screwed or something is cli'ing too
* long and it's timing out.
*/
- if (++strays <= 5)
+ if (++intrstray[irq] <= 5)
log(LOG_ERR, "stray interrupt %d%s\n", irq,
- strays >= 5 ? "; stopped logging" : "");
+ intrstray[irq] >= 5 ? "; stopped logging" : "");
}
int fastvec;