aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64/sparc64/intr_machdep.c
diff options
context:
space:
mode:
authorThomas Moestl <tmm@FreeBSD.org>2001-11-06 19:59:21 +0000
committerThomas Moestl <tmm@FreeBSD.org>2001-11-06 19:59:21 +0000
commit9d98522b1936573b170a342431c6b632295ac4f1 (patch)
treedd03c5f82bc65fe417813be8c01f71b627770587 /sys/sparc64/sparc64/intr_machdep.c
parent417dee22b4b60407e80d832a459ae32fa16cdde7 (diff)
downloadsrc-9d98522b1936573b170a342431c6b632295ac4f1.tar.gz
src-9d98522b1936573b170a342431c6b632295ac4f1.zip
Fix the intial setup of the stray interrupt handler (it takes a struct
*intr_vec as argument now, not the vector number).
Notes
Notes: svn path=/head/; revision=86143
Diffstat (limited to 'sys/sparc64/sparc64/intr_machdep.c')
-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 043ecdb14f3f..8f2c07ce4995 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. */