From 1d2e3bff3ba8b9838d349467f4c9528b877813a0 Mon Sep 17 00:00:00 2001 From: Greg Ungerer Date: Wed, 19 May 2004 06:13:59 -0700 Subject: [PATCH] [PATCH] m68knommu: fix cache flush for 5407 ColdFire CPU Fix the cache flushing code for the ColdFire 5407 CPU. The cpushl instruction arguments are wrong, causing it to miss some cache lines. --- include/asm-m68knommu/cacheflush.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/asm-m68knommu/cacheflush.h b/include/asm-m68knommu/cacheflush.h index 3789be803aed3..4c2ae48f09bff 100644 --- a/include/asm-m68knommu/cacheflush.h +++ b/include/asm-m68knommu/cacheflush.h @@ -37,13 +37,15 @@ extern inline void __flush_cache_all(void) "1:\n\t" "movel %%d0,%%a0\n\t" "2:\n\t" - ".word 0xf4e8\n\t" + ".word 0xf468\n\t" "addl #0x10,%%a0\n\t" "cmpl #0x00000800,%%a0\n\t" "blt 2b\n\t" "addql #1,%%d0\n\t" "cmpil #4,%%d0\n\t" "bne 1b\n\t" + "movel #0xb6088500,%%d0\n\t" + "movec %%d0,%%CACR\n\t" : : : "d0", "a0" ); #endif /* CONFIG_M5407 */ #ifdef CONFIG_M5272 -- 2.53.0