summaryrefslogtreecommitdiff
path: root/src/arch/ppc/init
diff options
context:
space:
mode:
authorGreg Watson <jarrah@users.sourceforge.net>2004-03-07 17:38:43 +0000
committerGreg Watson <jarrah@users.sourceforge.net>2004-03-07 17:38:43 +0000
commitc762e55fc9324299f993be7c4e1dfd56d07b3103 (patch)
tree17599b9de7dab89fd208f8289541f1b22d0c4aba /src/arch/ppc/init
parent7780fc6404defb1ffdada30b441c876e8073c6e2 (diff)
downloadcoreboot-c762e55fc9324299f993be7c4e1dfd56d07b3103.tar.xz
fix caching problem
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1382 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/arch/ppc/init')
-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 */