Module Name: src
Committed By: matt
Date: Tue Apr 12 00:21:11 UTC 2011
Modified Files:
src/sys/arch/evbmips/rmixl: machdep.c
Log Message:
Make sure we init MIPS COP0 OSSCRATCH for UP as well as for MP.
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/evbmips/rmixl/machdep.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/evbmips/rmixl/machdep.c
diff -u src/sys/arch/evbmips/rmixl/machdep.c:1.8 src/sys/arch/evbmips/rmixl/machdep.c:1.9
--- src/sys/arch/evbmips/rmixl/machdep.c:1.8 Mon Apr 11 23:12:41 2011
+++ src/sys/arch/evbmips/rmixl/machdep.c Tue Apr 12 00:21:10 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.8 2011/04/11 23:12:41 matt Exp $ */
+/* $NetBSD: machdep.c,v 1.9 2011/04/12 00:21:10 matt Exp $ */
/*
* Copyright 2001, 2002 Wasabi Systems, Inc.
@@ -74,7 +74,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.8 2011/04/11 23:12:41 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.9 2011/04/12 00:21:10 matt Exp $");
#define __INTR_PRIVATE
@@ -408,13 +408,13 @@
if (boothowto & RB_KDB)
Debugger();
#endif
-#ifdef MULTIPROCESSOR
/*
* store (cpu#0) curcpu in COP0 OSSCRATCH0
* used in exception vector
*/
__asm __volatile("dmtc0 %0,$%1"
:: "r"(&cpu_info_store), "n"(MIPS_COP_0_OSSCRATCH));
+#ifdef MULTIPROCESSOR
mips_fixup_exceptions(rmixl_fixup_cop0_oscratch);
#endif
rmixl_fixup_curcpu();