diff options
author | Atsushi Nemoto <anemo@mba.ocn.ne.jp> | 2006-04-27 00:00:03 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-05-01 12:03:44 -0700 |
commit | 2d3b5e296167443bf42c1c962a0cb7ebde9b016b (patch) | |
tree | 43c5d446a0effc67cc2116d1cdd9158091a5a0bb /arch | |
parent | ce0bd8e0b232fdf2da9390ad280286f45c5f3a89 (diff) | |
download | linux-stable-2d3b5e296167443bf42c1c962a0cb7ebde9b016b.tar.gz linux-stable-2d3b5e296167443bf42c1c962a0cb7ebde9b016b.tar.bz2 linux-stable-2d3b5e296167443bf42c1c962a0cb7ebde9b016b.zip |
[PATCH] MIPS: Fix tx49_blast_icache32_page_indexed.
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/mm/c-r4k.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/mm/c-r4k.c b/arch/mips/mm/c-r4k.c index 9572ed44f0d5..a761f99bcf98 100644 --- a/arch/mips/mm/c-r4k.c +++ b/arch/mips/mm/c-r4k.c @@ -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 << |