]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[PATCH] MIPS: Fix tx49_blast_icache32_page_indexed.
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Wed, 26 Apr 2006 23:00:03 +0000 (00:00 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 1 May 2006 19:03:44 +0000 (12:03 -0700)
Fix the cache index value in tx49_blast_icache32_page_indexed().
This is damage by de62893bc0725f8b5f0445250577cd7a10b2d8f8 commit.

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

index 9572ed44f0d5783d971218c8b579c40e2d980bcc..a761f99bcf98f21eaaa2b9f274b3f920c5b6cca4 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 <<