Commit 1d2e3bff authored by Greg Ungerer's avatar Greg Ungerer Committed by Linus Torvalds

[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.
parent c5c7dfff
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment