summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/sparc64/sparc64/intr_machdep.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/sparc64/sparc64/intr_machdep.c b/sys/sparc64/sparc64/intr_machdep.c
index 043ecdb..8f2c07c 100644
--- a/sys/sparc64/sparc64/intr_machdep.c
+++ b/sys/sparc64/sparc64/intr_machdep.c
@@ -159,9 +159,10 @@ intr_init()
mtx_init(&intr_table_lock, "ithread table lock", MTX_SPIN);
/* Mark all interrupts as being stray. */
- for (i = 0; i < NIV; i++)
+ for (i = 0; i < NIV; i++) {
intr_setup(PIL_LOW, intr_dequeue, i, intr_stray,
- (void *)(uintptr_t)i);
+ (void *)&intr_vectors[i]);
+ }
}
/* Schedule a heavyweight interrupt process. */
OpenPOWER on IntegriCloud