updated for other boards

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1350 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Greg Watson 2004-01-22 01:00:07 +00:00
parent c5acd90b53
commit aabdf02cdd
1 changed files with 10 additions and 0 deletions

View File

@ -21,6 +21,8 @@ void (*payload)(void) = (void (*)(void))_iseg;
* - start hardwaremain() which does remainder of setup * - start hardwaremain() which does remainder of setup
*/ */
extern void flush_dcache(void);
void ppc_main(void) void ppc_main(void)
{ {
unsigned *from; unsigned *from;
@ -40,5 +42,13 @@ void ppc_main(void)
*to++ = *from++; *to++ = *from++;
} }
/*
* Flush cache to memory because linux will try and
* invalidate it.
*/
flush_dcache();
payload(); payload();
/* NOT REACHED */
} }