Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sgimips/sgimips Set mips_sdcache_forceinv to 1 for ...



details:   https://anonhg.NetBSD.org/src/rev/de01e84cb476
branches:  trunk
changeset: 574478:de01e84cb476
user:      sekiya <sekiya%NetBSD.org@localhost>
date:      Tue Mar 01 04:25:00 2005 +0000

description:
Set mips_sdcache_forceinv to 1 for r5k processors.

We now support secondary cache operation on r5ksc out-of-the-box.

diffstat:

 sys/arch/sgimips/sgimips/machdep.c |  14 ++++----------
 1 files changed, 4 insertions(+), 10 deletions(-)

diffs (36 lines):

diff -r 63184ac2c53d -r de01e84cb476 sys/arch/sgimips/sgimips/machdep.c
--- a/sys/arch/sgimips/sgimips/machdep.c        Tue Mar 01 04:23:44 2005 +0000
+++ b/sys/arch/sgimips/sgimips/machdep.c        Tue Mar 01 04:25:00 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.89 2004/12/17 22:59:49 sekiya Exp $      */
+/*     $NetBSD: machdep.c,v 1.90 2005/03/01 04:25:00 sekiya Exp $      */
 
 /*
  * Copyright (c) 2000 Soren S. Jorvang
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.89 2004/12/17 22:59:49 sekiya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.90 2005/03/01 04:25:00 sekiya Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -865,15 +865,9 @@
 #if defined(MIPS3)
        case MIPS_R5000:
        case MIPS_RM5200:
-#ifdef notyet
-               r5k_enable_sdcache();
-#else
-               mips3_cp0_config_write( (mips3_cp0_config_read())
-                       & ~MIPS3_CONFIG_SE);
-               mips_sdcache_size = 0;
-               mips_sdcache_line_size = 0;
-#endif
+               mips_sdcache_forceinv = 1;
                break;
+
 #endif
        }
 }



Home | Main Index | Thread Index | Old Index