Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/arch/mips/mips/cache.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/arch/mips/mips/cache.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.10 retrieving revision 1.11 diff -u -p -r1.10 -r1.11 --- src/sys/arch/mips/mips/cache.c 2002/03/05 15:42:21 1.10 +++ src/sys/arch/mips/mips/cache.c 2002/04/03 03:55:07 1.11 @@ -1,4 +1,4 @@ -/* $NetBSD: cache.c,v 1.10 2002/03/05 15:42:21 simonb Exp $ */ +/* $NetBSD: cache.c,v 1.11 2002/04/03 03:55:07 simonb Exp $ */ /* * Copyright 2001, 2002 Wasabi Systems, Inc. @@ -933,6 +933,10 @@ mips_config_cache_modern(void) mips_cache_ops.mco_icache_sync_range = mipsNN_icache_sync_range_16; switch (mips_picache_ways) { + case 2: + mips_cache_ops.mco_icache_sync_range_index = + mipsNN_icache_sync_range_index_16_2way; + break; case 4: mips_cache_ops.mco_icache_sync_range_index = mipsNN_icache_sync_range_index_16_4way; @@ -946,6 +950,10 @@ mips_config_cache_modern(void) mips_cache_ops.mco_icache_sync_range = mipsNN_icache_sync_range_32; switch (mips_picache_ways) { + case 2: + mips_cache_ops.mco_icache_sync_range_index = + mipsNN_icache_sync_range_index_32_2way; + break; case 4: mips_cache_ops.mco_icache_sync_range_index = mipsNN_icache_sync_range_index_32_4way; @@ -973,6 +981,10 @@ mips_config_cache_modern(void) mips_cache_ops.mco_pdcache_wbinv_range = mipsNN_pdcache_wbinv_range_16; switch (mips_pdcache_ways) { + case 2: + mips_cache_ops.mco_pdcache_wbinv_range_index = + mipsNN_pdcache_wbinv_range_index_16_2way; + break; case 4: mips_cache_ops.mco_pdcache_wbinv_range_index = mipsNN_pdcache_wbinv_range_index_16_4way; @@ -991,6 +1003,10 @@ mips_config_cache_modern(void) mips_cache_ops.mco_pdcache_wbinv_range = mipsNN_pdcache_wbinv_range_32; switch (mips_pdcache_ways) { + case 2: + mips_cache_ops.mco_pdcache_wbinv_range_index = + mipsNN_pdcache_wbinv_range_index_32_2way; + break; case 4: mips_cache_ops.mco_pdcache_wbinv_range_index = mipsNN_pdcache_wbinv_range_index_32_4way;