Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] only setup kseg0 coherency after flush_cache_all ...
@ 2004-01-09 23:38 Jun Sun
  0 siblings, 0 replies; only message in thread
From: Jun Sun @ 2004-01-09 23:38 UTC (permalink / raw)
  To: linux-mips; +Cc: jsun

[-- Attachment #1: Type: text/plain, Size: 188 bytes --]


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


[-- Attachment #2: junk --]
[-- Type: text/plain, Size: 459 bytes --]

diff -Nru arch/mips/mm/c-r4k.c.orig arch/mips/mm/c-r4k.c
--- arch/mips/mm/c-r4k.c.orig	Mon Jan  5 10:33:35 2004
+++ arch/mips/mm/c-r4k.c	Fri Jan  9 15:32:18 2004
@@ -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();

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-01-09 23:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-09 23:38 [PATCH] only setup kseg0 coherency after flush_cache_all Jun Sun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox