From 00317eb148b44f37427ab871c4d1b4ebc4f0dd93 Mon Sep 17 00:00:00 2001 From: miod Date: Wed, 14 Jan 2015 21:35:43 +0000 Subject: [PATCH] Don't forget to register event counter for VME interrupts. --- sys/arch/sparc/dev/obio.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) -- 2.20.1