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_r5k.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/arch/mips/mips/cache_r5k.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.2.2.4 retrieving revision 1.2.2.5 diff -u -p -r1.2.2.4 -r1.2.2.5 --- src/sys/arch/mips/mips/cache_r5k.c 2002/02/28 04:10:44 1.2.2.4 +++ src/sys/arch/mips/mips/cache_r5k.c 2002/11/11 22:00:33 1.2.2.5 @@ -1,4 +1,4 @@ -/* $NetBSD: cache_r5k.c,v 1.2.2.4 2002/02/28 04:10:44 nathanw Exp $ */ +/* $NetBSD: cache_r5k.c,v 1.2.2.5 2002/11/11 22:00:33 nathanw Exp $ */ /* * Copyright 2001 Wasabi Systems, Inc. @@ -127,7 +127,9 @@ r5k_icache_sync_range_32(vaddr_t va, vsi void r5k_icache_sync_range_index_32(vaddr_t va, vsize_t size) { - vaddr_t w2va, eva; + vaddr_t w2va, eva, orig_va; + + orig_va = va; eva = round_line(va + size); va = trunc_line(va); @@ -142,7 +144,7 @@ r5k_icache_sync_range_index_32(vaddr_t v * bits that determine the cache index, and make a KSEG0 * address out of them. */ - va = MIPS_PHYS_TO_KSEG0(va & mips_picache_way_mask); + va = MIPS_PHYS_TO_KSEG0(orig_va & mips_picache_way_mask); eva = round_line(va + size); va = trunc_line(va);