Module Name:    src
Committed By:   matt
Date:           Tue Aug 11 02:38:30 UTC 2009

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

Log Message:
Fix loongson2 sdcache init.


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/sys/arch/mips/mips/cache.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/cache.c
diff -u src/sys/arch/mips/mips/cache.c:1.41 src/sys/arch/mips/mips/cache.c:1.42
--- src/sys/arch/mips/mips/cache.c:1.41	Tue Aug 11 00:34:29 2009
+++ src/sys/arch/mips/mips/cache.c	Tue Aug 11 02:38:30 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: cache.c,v 1.41 2009/08/11 00:34:29 matt Exp $	*/
+/*	$NetBSD: cache.c,v 1.42 2009/08/11 02:38:30 matt Exp $	*/
 
 /*
  * Copyright 2001, 2002 Wasabi Systems, Inc.
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cache.c,v 1.41 2009/08/11 00:34:29 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cache.c,v 1.42 2009/08/11 02:38:30 matt Exp $");
 
 #include "opt_cputype.h"
 #include "opt_mips_cache.h"
@@ -661,7 +661,7 @@
 
 		mips3_get_cache_config(csizebase);
 
-		mips_sdcache_size = 0;	/* don't trust config reg */
+		mips_sdcache_line_size = 32;	/* don't trust config reg */
 
 		if (mips_picache_size / mips_picache_ways > PAGE_SIZE ||
 		    mips_pdcache_size / mips_pdcache_ways > PAGE_SIZE)
@@ -840,7 +840,6 @@
 	case MIPS_LOONGSON2:
 		mips_sdcache_ways = 4;
 		mips_sdcache_size = 512*1024;
-		mips_sdcache_line_size = 32;
 		mips_scache_unified = 1;
 
 		mips_cache_ops.mco_sdcache_wbinv_all =

Reply via email to