From 3733eac8e442206a26d94dc225c84fd0df6bc68b Mon Sep 17 00:00:00 2001 From: scottr Date: Wed, 1 Jul 1998 18:57:36 +0000 Subject: [PATCH] Undo a thinko in the various VIA2 isr loops: increment bitnum inside the loop, not as part of the condition. --- sys/arch/mac68k/mac68k/via.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/sys/arch/mac68k/mac68k/via.c b/sys/arch/mac68k/mac68k/via.c index a498efa49741..4666957d59b2 100644 --- a/sys/arch/mac68k/mac68k/via.c +++ b/sys/arch/mac68k/mac68k/via.c @@ -1,4 +1,4 @@ -/* $NetBSD: via.c,v 1.65 1998/04/26 18:25:58 scottr Exp $ */ +/* $NetBSD: via.c,v 1.66 1998/07/01 18:57:36 scottr Exp $ */ /*- * Copyright (C) 1993 Allen K. Briggs, Chris P. Caputo, @@ -269,7 +269,8 @@ via2_intr(fp) if (intbits & mask) via2itab[bitnum](via2iarg[bitnum]); mask <<= 1; - } while (intbits >= mask && ++bitnum); + ++bitnum; + } while (intbits >= mask); } void @@ -293,7 +294,8 @@ rbv_intr(fp) if (intbits & mask) via2itab[bitnum](via2iarg[bitnum]); mask <<= 1; - } while (intbits >= mask && ++bitnum); + ++bitnum; + } while (intbits >= mask); } void @@ -317,7 +319,8 @@ oss_intr(fp) via2_reg(rIFR) = mask; } mask <<= 1; - } while (intbits >= mask && ++bitnum); + ++bitnum; + } while (intbits >= mask); } static void