]> err.no Git - linux-2.6/commitdiff
[MIPS] Fix tx49_blast_icache32_page_indexed.
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Tue, 4 Apr 2006 08:34:14 +0000 (17:34 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 19 Apr 2006 02:14:21 +0000 (04:14 +0200)
Fix the cache index value in tx49_blast_icache32_page_indexed().
This is a damage by de62893bc0725f8b5f0445250577cd7a10b2d8f8 commit.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/c-r4k.c

index 32b7f6aeb983271201702594c9d3a2da3e32ce5b..c4c208449d872ef7f3ed9593558d119273607836 100644 (file)
@@ -154,7 +154,8 @@ static inline void blast_icache32_r4600_v1_page_indexed(unsigned long page)
 
 static inline void tx49_blast_icache32_page_indexed(unsigned long page)
 {
-       unsigned long start = page;
+       unsigned long indexmask = current_cpu_data.icache.waysize - 1;
+       unsigned long start = INDEX_BASE + (page & indexmask);
        unsigned long end = start + PAGE_SIZE;
        unsigned long ws_inc = 1UL << current_cpu_data.icache.waybit;
        unsigned long ws_end = current_cpu_data.icache.ways <<