Skip to contentSkip to conversation

only setup kseg0 coherency after flush_cache_all ...

PATCH New Jun Sun 1 participant 1 message Jan 9, 2004 MIPS

lore
Share & tools
lore

Jun Sun

author
#0 lore raw

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
diff -Nru arch/mips/mm/c-r4k.c.orig arch/mips/mm/c-r4k.c
@@ -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();