All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tx49_blast_icache32_page_indexed fix
@ 2006-04-04  8:34 Atsushi Nemoto
  2006-04-04 12:22 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Atsushi Nemoto @ 2006-04-04  8:34 UTC (permalink / raw)
  To: linux-mips; +Cc: ralf

Fix an index value in tx49_blast_icache32_page_indexed().
This is a damage by 13acfa3fdef15edaa4f5444c68e28e05978afa08 commit.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>

diff --git a/arch/mips/mm/c-r4k.c b/arch/mips/mm/c-r4k.c
index 32b7f6a..c4c2084 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_
 
 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 <<

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] tx49_blast_icache32_page_indexed fix
  2006-04-04  8:34 [PATCH] tx49_blast_icache32_page_indexed fix Atsushi Nemoto
@ 2006-04-04 12:22 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2006-04-04 12:22 UTC (permalink / raw)
  To: Atsushi Nemoto; +Cc: linux-mips

On Tue, Apr 04, 2006 at 05:34:14PM +0900, Atsushi Nemoto wrote:

> Fix an index value in tx49_blast_icache32_page_indexed().
> This is a damage by 13acfa3fdef15edaa4f5444c68e28e05978afa08 commit.

Applied on master and linux-2.6.16-stable.

  Ralf

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-04-04 12:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-04  8:34 [PATCH] tx49_blast_icache32_page_indexed fix Atsushi Nemoto
2006-04-04 12:22 ` Ralf Baechle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.