Don't forget to register event counter for VME interrupts.
authormiod <miod@openbsd.org>
Wed, 14 Jan 2015 21:35:43 +0000 (21:35 +0000)
committermiod <miod@openbsd.org>
Wed, 14 Jan 2015 21:35:43 +0000 (21:35 +0000)
sys/arch/sparc/dev/obio.c

index f55d9bc..41ae322 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: obio.c,v 1.22 2010/09/05 18:10:10 kettenis Exp $      */
+/*     $OpenBSD: obio.c,v 1.23 2015/01/14 21:35:43 miod Exp $  */
 /*     $NetBSD: obio.c,v 1.37 1997/07/29 09:58:11 fair Exp $   */
 
 /*
@@ -631,6 +631,11 @@ vmeintr_establish(vec, level, ih, ipl_block, name)
                ihs->ih_next = ih;
        }
 
+       if (name != NULL) {
+               ih->ih_vec = vec;
+               evcount_attach(&ih->ih_count, name, &ih->ih_vec);
+       }
+
        /* ensure the interrupt subsystem will call us at this level */
        for (ihs = intrhand[level]; ihs; ihs = ihs->ih_next)
                if (ihs->ih_fun == vmeintr)