summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHirokazu Takata <takata@linux-m32r.org>2005-03-28 03:44:35 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-03-28 03:44:35 -0800
commit0dd0dcc00253eaa6216105f74c9c13d2cedbf4f6 (patch)
tree9f46a068e08fcef152df2e8f2482b862a54ce6af
parentd53024dd7928f1b7d503d4c8d5d47e8f233c8063 (diff)
[PATCH] m32r: Fix M32102 I-cache invalidation
This patch fixes I-cache invalidation operation for M32102 chip, which is one of m32r MMU-less targets. Before this fix, the m32r kernel for M32102 chip missed I-cache invalidation operation and switched off I-cache unintentionally. This bug caused awful performance degradation. Signed-off-by: Mamoru Sakugawa <sakugawa@linux-m32r.org> Signed-off-by: Hirokazu Takata <takata@linux-m32r.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--arch/m32r/mm/cache.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/m32r/mm/cache.c b/arch/m32r/mm/cache.c
index e2dd92d69380..31b0789c1992 100644
--- a/arch/m32r/mm/cache.c
+++ b/arch/m32r/mm/cache.c
@@ -4,8 +4,6 @@
* Copyright (C) 2002 Hirokazu Takata
*/
-/* $Id$ */
-
#include <linux/config.h>
#include <asm/pgtable.h>
@@ -25,8 +23,8 @@
#define MCCR_DCACHE_CBINV (MCCR_CC|MCCR_DIV|MCCR_DCB)
#define CHECK_MCCR(mccr) (mccr = *MCCR)
#elif defined(CONFIG_CHIP_M32102)
-#define MCCR ((volatile unsigned long*)0xfffffffc)
-#define MCCR_IIV (1UL << 8) /* I-cache invalidate */
+#define MCCR ((volatile unsigned char*)0xfffffffe)
+#define MCCR_IIV (1UL << 0) /* I-cache invalidate */
#define MCCR_ICACHE_INV MCCR_IIV
#endif /* CONFIG_CHIP_XNUX2 || CONFIG_CHIP_M32700 */
@@ -65,4 +63,3 @@ void _flush_cache_copyback_all(void)
#endif
}
-