only setup kseg0 coherency after flush_cache_all ...
PATCH 1/1 only setup kseg0 coherency after flush_cache_all ...
The change is needed to make CONFIG_MIPS_UNCACHED work. Otherwise you end up with accessing stale data right after switching off cache.
If no objections, I will check it in later.
Jun
mips/mm/c-r4k.c renamed from mips/mm/c-r4k.c.orig +1 -1
@@ -1031,7 +1031,6 @@probe_pcache ();setup_scache (); -coherency_setup ();if (c->dcache.sets * c->dcache.ways >PAGE_SIZE ) c->dcache.flags |=MIPS_CACHE_ALIASES ;
@@ -1073,6 +1072,7 @@#endif __flush_cache_all (); +coherency_setup ();build_clear_page ();build_copy_page ();