Commit 60610192 authored by Greg Ungerer's avatar Greg Ungerer

m68k: modify cache push and clear code for ColdFire with MMU enable

The cache push and clear code only need to flush the branch cache on
the write-through cache setup of the ColdFire V4e with MMU enabled.
Signed-off-by: default avatarGreg Ungerer <gerg@uclinux.org>
Acked-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Acked-by: default avatarMatt Waddel <mwaddel@yahoo.com>
Acked-by: default avatarKurt Mahan <kmahan@xmission.com>
parent 8b38f3c9
...@@ -203,7 +203,9 @@ static inline void pushcl040(unsigned long paddr) ...@@ -203,7 +203,9 @@ static inline void pushcl040(unsigned long paddr)
void cache_clear (unsigned long paddr, int len) void cache_clear (unsigned long paddr, int len)
{ {
if (CPU_IS_040_OR_060) { if (CPU_IS_COLDFIRE) {
flush_cf_bcache(0, DCACHE_MAX_ADDR);
} else if (CPU_IS_040_OR_060) {
int tmp; int tmp;
/* /*
...@@ -250,7 +252,9 @@ EXPORT_SYMBOL(cache_clear); ...@@ -250,7 +252,9 @@ EXPORT_SYMBOL(cache_clear);
void cache_push (unsigned long paddr, int len) void cache_push (unsigned long paddr, int len)
{ {
if (CPU_IS_040_OR_060) { if (CPU_IS_COLDFIRE) {
flush_cf_bcache(0, DCACHE_MAX_ADDR);
} else if (CPU_IS_040_OR_060) {
int tmp = PAGE_SIZE; int tmp = PAGE_SIZE;
/* /*
......
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