Module Name:    src
Committed By:   matt
Date:           Fri Mar 12 00:18:24 UTC 2010

Modified Files:
        src/sys/arch/sbmips/sbmips [matt-nb5-mips64]: sb1250_icu.c

Log Message:
establish IPI intrs in sb1250_cpu_init


To generate a diff of this commit:
cvs rdiff -u -r1.9.36.8 -r1.9.36.9 src/sys/arch/sbmips/sbmips/sb1250_icu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/sbmips/sbmips/sb1250_icu.c
diff -u src/sys/arch/sbmips/sbmips/sb1250_icu.c:1.9.36.8 src/sys/arch/sbmips/sbmips/sb1250_icu.c:1.9.36.9
--- src/sys/arch/sbmips/sbmips/sb1250_icu.c:1.9.36.8	Thu Mar 11 22:26:56 2010
+++ src/sys/arch/sbmips/sbmips/sb1250_icu.c	Fri Mar 12 00:18:24 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: sb1250_icu.c,v 1.9.36.8 2010/03/11 22:26:56 matt Exp $ */
+/* $NetBSD: sb1250_icu.c,v 1.9.36.9 2010/03/12 00:18:24 matt Exp $ */
 
 /*
  * Copyright 2000, 2001
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sb1250_icu.c,v 1.9.36.8 2010/03/11 22:26:56 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sb1250_icu.c,v 1.9.36.9 2010/03/12 00:18:24 matt Exp $");
 
 #define	__INTR_PRIVATE
 
@@ -219,6 +219,17 @@
 	}
 
 	WRITE_REG(cpu->sb1cpu_imr_base + R_IMR_INTERRUPT_MASK, cpu->sb1cpu_imr_all);
+#ifdef MULTIPROCESSOR
+	if (sb1250_ihands[K_INT_MBOX_0].ih_fun == NULL) {
+		/*
+		 * For now, deliver all IPIs at IPL_SCHED.  Eventually
+		 * some will be at IPL_VM.
+		 */
+		for (int irq = K_INT_MBOX_0; irq <= K_INT_MBOX_3; irq++)
+			sb1250_intr_establish(irq, IPL_SCHED,
+			    sb1250_ipi_intr, NULL);
+	}
+#endif /* MULTIPROCESSOR */
 }
 
 void

Reply via email to