From: miod Date: Wed, 14 Jan 2015 21:35:43 +0000 (+0000) Subject: Don't forget to register event counter for VME interrupts. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=00317eb148b44f37427ab871c4d1b4ebc4f0dd93;p=openbsd Don't forget to register event counter for VME interrupts. --- diff --git a/sys/arch/sparc/dev/obio.c b/sys/arch/sparc/dev/obio.c index f55d9bcb166..41ae322eb3e 100644 --- a/sys/arch/sparc/dev/obio.c +++ b/sys/arch/sparc/dev/obio.c @@ -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)