diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2005-10-16 04:30:44 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2005-10-16 04:30:44 +0000 |
commit | 3dd6ef0f44598952296b26499ab142254fce1bd4 (patch) | |
tree | f65fa4b5b618e72f52bf80d172a8fc1a88fe4c04 /sys/arch/macppc/dev/openpic.c | |
parent | d79d5e6d0731e9db4b1d547095536e7206722850 (diff) |
print the hardware irq number, not the bogus internal number for 'vmstat -i'
Diffstat (limited to 'sys/arch/macppc/dev/openpic.c')
-rw-r--r-- | sys/arch/macppc/dev/openpic.c | 5 |
1 files changed, 3 insertions, 2 deletions
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); |