summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
diff options
context:
space:
mode:
authortmm <tmm@FreeBSD.org>2001-11-06 19:59:21 +0000
committertmm <tmm@FreeBSD.org>2001-11-06 19:59:21 +0000
commit00cf34fe14bd24e1c5424726cbbb595b6479b3ba (patch)
treedd03c5f82bc65fe417813be8c01f71b627770587 /sys/sparc64
parente2cdd54d9a5ff05bfa6d1084d00636e26c8643ee (diff)
downloadFreeBSD-src-00cf34fe14bd24e1c5424726cbbb595b6479b3ba.zip
FreeBSD-src-00cf34fe14bd24e1c5424726cbbb595b6479b3ba.tar.gz
Fix the intial setup of the stray interrupt handler (it takes a struct
*intr_vec as argument now, not the vector number).
Diffstat (limited to 'sys/sparc64')
-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