Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbmips/rmixl Make sure we init MIPS COP0 OSSCRATCH...
details: https://anonhg.NetBSD.org/src/rev/29413e9149a3
branches: trunk
changeset: 764128:29413e9149a3
user: matt <matt%NetBSD.org@localhost>
date: Tue Apr 12 00:21:10 2011 +0000
description:
Make sure we init MIPS COP0 OSSCRATCH for UP as well as for MP.
diffstat:
sys/arch/evbmips/rmixl/machdep.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (33 lines):
diff -r bd5f98779e8f -r 29413e9149a3 sys/arch/evbmips/rmixl/machdep.c
--- a/sys/arch/evbmips/rmixl/machdep.c Mon Apr 11 23:12:41 2011 +0000
+++ b/sys/arch/evbmips/rmixl/machdep.c Tue Apr 12 00:21:10 2011 +0000
@@ -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();
Home |
Main Index |
Thread Index |
Old Index