Module Name:    src
Committed By:   matt
Date:           Thu Aug  6 23:16:39 UTC 2009

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

Log Message:
Use mips3_get_cache_config for Loongson2


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 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.37 src/sys/arch/mips/mips/cache.c:1.38
--- src/sys/arch/mips/mips/cache.c:1.37	Thu Aug  6 22:56:31 2009
+++ src/sys/arch/mips/mips/cache.c	Thu Aug  6 23:16:39 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: cache.c,v 1.37 2009/08/06 22:56:31 matt Exp $	*/
+/*	$NetBSD: cache.c,v 1.38 2009/08/06 23:16:39 matt Exp $	*/
 
 /*
  * Copyright 2001, 2002 Wasabi Systems, Inc.
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cache.c,v 1.37 2009/08/06 22:56:31 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cache.c,v 1.38 2009/08/06 23:16:39 matt Exp $");
 
 #include "opt_cputype.h"
 #include "opt_mips_cache.h"
@@ -656,11 +656,7 @@
 		mips_picache_ways = 4;
 		mips_pdcache_ways = 4;
 
-		mips_picache_size = 64*1024;
-		mips_pdcache_size = 64*1024;
-
-		mips_picache_line_size = 32;
-		mips_pdcache_line_size = 32;
+		mips3_get_cache_config(csizebase);
 
 		mips_cache_virtual_alias = 1;
 

Reply via email to