From 2102e7efe448e57277c607df442ee6b9f1aea96e Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 24 Dec 1996 20:29:02 +0000 Subject: [PATCH] call all irq routines --- sys/arch/mvme68k/mvme68k/trap.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sys/arch/mvme68k/mvme68k/trap.c b/sys/arch/mvme68k/mvme68k/trap.c index fb4bde04d11..05ee76df038 100644 --- a/sys/arch/mvme68k/mvme68k/trap.c +++ b/sys/arch/mvme68k/mvme68k/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.7 1996/06/11 10:07:13 deraadt Exp $ */ +/* $OpenBSD: trap.c,v 1.8 1996/12/24 20:29:02 deraadt Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -1134,6 +1134,7 @@ hardintr(pc, evec, frame) int vec = (evec & 0xfff) >> 2; /* XXX should be m68k macro? */ extern u_long intrcnt[]; /* XXX from locore */ struct intrhand *ih; + int count = 0; int r; cnt.v_intr++; @@ -1141,9 +1142,10 @@ hardintr(pc, evec, frame) for (ih = intrs[vec]; ih; ih = ih->ih_next) { r = (*ih->ih_fn)(ih->ih_wantframe ? frame : ih->ih_arg); if (r > 0) - return; + count++; } - return (straytrap(pc, evec)); + if (count == 0) + return (straytrap(pc, evec)); } #endif /* !INTR_ASM */ -- 2.20.1