summaryrefslogtreecommitdiff
path: root/src/arch/ppc/init/ppc_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/ppc/init/ppc_main.c')
-rw-r--r--src/arch/ppc/init/ppc_main.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/arch/ppc/init/ppc_main.c b/src/arch/ppc/init/ppc_main.c
index 268e21436a..f7405fad33 100644
--- a/src/arch/ppc/init/ppc_main.c
+++ b/src/arch/ppc/init/ppc_main.c
@@ -33,6 +33,11 @@ void ppc_main(void)
sdram_init();
/*
+ * Flush cache now that memory is enabled.
+ */
+ flush_dcache();
+
+ /*
* Relocate payload (text & data) if necessary
*/
if (_liseg != _iseg) {
@@ -42,12 +47,6 @@ void ppc_main(void)
*to++ = *from++;
}
- /*
- * Flush cache to memory because linux will try and
- * invalidate it.
- */
- flush_dcache();
-
payload();
/* NOT REACHED */