From 3dd6ef0f44598952296b26499ab142254fce1bd4 Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Sun, 16 Oct 2005 04:30:44 +0000 Subject: print the hardware irq number, not the bogus internal number for 'vmstat -i' --- sys/arch/macppc/dev/openpic.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/arch/macppc/dev/openpic.c') diff --git a/sys/arch/macppc/dev/openpic.c b/sys/arch/macppc/dev/openpic.c index 97a9f3129e5..9b48bb02b85 100644 --- a/sys/arch/macppc/dev/openpic.c +++ b/sys/arch/macppc/dev/openpic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: openpic.c,v 1.31 2005/10/09 03:50:11 drahn Exp $ */ +/* $OpenBSD: openpic.c,v 1.32 2005/10/16 04:30:43 drahn Exp $ */ /*- * Copyright (c) 1995 Per Fogelstrom @@ -263,7 +263,8 @@ printf("vI %d ", irq); ih->ih_next = NULL; ih->ih_level = level; ih->ih_irq = irq; - evcount_attach(&ih->ih_count, name, (void *)&ih->ih_irq, &evcount_intr); + evcount_attach(&ih->ih_count, name, (void *)&o_hwirq[irq], + &evcount_intr); *p = ih; return (ih); -- cgit v1.2.3