Module Name:    src
Committed By:   matt
Date:           Sun Aug  9 04:06:35 UTC 2009

Modified Files:
        src/sys/arch/mips/mips: mips_machdep.c

Log Message:
Add disabled code to set K0 CCA if CCA_SPECIAL is being used.


To generate a diff of this commit:
cvs rdiff -u -r1.214 -r1.215 src/sys/arch/mips/mips/mips_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/mips/mips/mips_machdep.c
diff -u src/sys/arch/mips/mips/mips_machdep.c:1.214 src/sys/arch/mips/mips/mips_machdep.c:1.215
--- src/sys/arch/mips/mips/mips_machdep.c:1.214	Fri Aug  7 03:33:28 2009
+++ src/sys/arch/mips/mips/mips_machdep.c	Sun Aug  9 04:06:35 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: mips_machdep.c,v 1.214 2009/08/07 03:33:28 matt Exp $	*/
+/*	$NetBSD: mips_machdep.c,v 1.215 2009/08/09 04:06:35 matt Exp $	*/
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -112,7 +112,7 @@
 
 #include <sys/cdefs.h>			/* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.214 2009/08/07 03:33:28 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.215 2009/08/09 04:06:35 matt Exp $");
 
 #include "opt_cputype.h"
 
@@ -895,6 +895,14 @@
 		cca = (ct->cpu_flags & CPU_MIPS_CACHED_CCA_MASK) >>
 		    CPU_MIPS_CACHED_CCA_SHIFT;
 		mips3_pg_cached = MIPS3_CCA_TO_PG(cca);
+#ifdef notyet /* MIPS3_PLUS */
+		{
+			uint32_t cfg;
+			cfg = mips3_cp0_config_read();
+			cfg = cca | (cfg & ~MIPS3_CONFIG_K0_MASK);
+			mips3_cp0_config_write(cfg);
+		}
+#endif
 	} else
 		mips3_pg_cached = MIPS3_DEFAULT_PG_CACHED;
 

Reply via email to