microblaze: Invalidate dcache before enabling it
authorMichal Simek <monstr@monstr.eu>
Mon, 1 Feb 2010 11:15:58 +0000 (12:15 +0100)
committerMichal Simek <monstr@monstr.eu>
Mon, 8 Feb 2010 10:39:18 +0000 (11:39 +0100)
We found that on write-trough kernel is necessary to do that invalidation.
One WB is possible to use invalidation too.

Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/kernel/setup.c

index 5372b24ad049cf92cfd881927c21f5e559a54089..bb8c4b9ccb8019bb54cb585a5e8d1f2e77f3acb9 100644 (file)
@@ -54,6 +54,7 @@ void __init setup_arch(char **cmdline_p)
 
        microblaze_cache_init();
 
+       invalidate_dcache();
        enable_dcache();
 
        invalidate_icache();