Add stray interrupts counters.
authormickey <mickey@openbsd.org>
Thu, 18 Apr 1996 12:00:25 +0000 (12:00 +0000)
committermickey <mickey@openbsd.org>
Thu, 18 Apr 1996 12:00:25 +0000 (12:00 +0000)
sys/arch/i386/isa/isa_machdep.c

index 044e947..dc21d08 100644 (file)
@@ -145,6 +145,7 @@ isa_nmi()
        return(0);
 }
 
+u_long intrstray[ICU_LEN] = {0};
 /*
  * Caught a stray interrupt, notify
  */
@@ -154,6 +155,8 @@ isa_strayintr(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