summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2005-10-16 04:30:44 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2005-10-16 04:30:44 +0000
commit3dd6ef0f44598952296b26499ab142254fce1bd4 (patch)
treef65fa4b5b618e72f52bf80d172a8fc1a88fe4c04 /sys/arch
parentd79d5e6d0731e9db4b1d547095536e7206722850 (diff)
print the hardware irq number, not the bogus internal number for 'vmstat -i'
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/macppc/dev/macintr.c5
-rw-r--r--sys/arch/macppc/dev/openpic.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/arch/macppc/dev/macintr.c b/sys/arch/macppc/dev/macintr.c
index 6ba6bab5d1a..4dc001a6312 100644
--- a/sys/arch/macppc/dev/macintr.c
+++ b/sys/arch/macppc/dev/macintr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: macintr.c,v 1.28 2005/09/30 19:51:52 deraadt Exp $ */
+/* $OpenBSD: macintr.c,v 1.29 2005/10/16 04:30:43 drahn Exp $ */
/*-
* Copyright (c) 1995 Per Fogelstrom
@@ -287,7 +287,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 *)&m_hwirq[irq],
+ &evcount_intr);
*p = ih;
return (ih);
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);