From aabdf02cdd461b0b3623fd047851ae9d2e872ef8 Mon Sep 17 00:00:00 2001 From: Greg Watson Date: Thu, 22 Jan 2004 01:00:07 +0000 Subject: [PATCH] updated for other boards git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1350 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/arch/ppc/init/ppc_main.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/arch/ppc/init/ppc_main.c b/src/arch/ppc/init/ppc_main.c index 9853758ce4..268e21436a 100644 --- a/src/arch/ppc/init/ppc_main.c +++ b/src/arch/ppc/init/ppc_main.c @@ -21,6 +21,8 @@ void (*payload)(void) = (void (*)(void))_iseg; * - start hardwaremain() which does remainder of setup */ +extern void flush_dcache(void); + void ppc_main(void) { unsigned *from; @@ -40,5 +42,13 @@ void ppc_main(void) *to++ = *from++; } + /* + * Flush cache to memory because linux will try and + * invalidate it. + */ + flush_dcache(); + payload(); + + /* NOT REACHED */ }