blob: adeecf7ba6ecf3712e2a00babd61ebd3141dce0e [file] [log] [blame]
Kyösti Mälkki5a5c8862014-01-26 14:41:54 +02001#include <smp/node.h>
Patrick Georgic9fa96d2010-02-24 13:58:23 +00002#include <bootblock_common.h>
Patrick Georgi546953c2014-11-29 10:38:17 +01003#include <halt.h>
Patrick Georgic9fa96d2010-02-24 13:58:23 +00004
5static void main(unsigned long bist)
6{
7 if (boot_cpu()) {
Kyösti Mälkkif9022482012-11-14 08:01:44 +02008 bootblock_mainboard_init();
Patrick Georgifab35e32011-03-08 07:50:43 +00009
10#if CONFIG_USE_OPTION_TABLE
Kyösti Mälkkif28dbe02011-12-05 20:17:17 +020011 sanitize_cmos();
Patrick Georgifab35e32011-03-08 07:50:43 +000012#endif
Duncan Laurieb6e97b12012-09-09 19:09:56 -070013#if CONFIG_CMOS_POST
14 cmos_post_init();
15#endif
Kyösti Mälkkif28dbe02011-12-05 20:17:17 +020016 }
Patrick Georgifab35e32011-03-08 07:50:43 +000017
Patrick Georgic9fa96d2010-02-24 13:58:23 +000018 const char* target1 = "fallback/romstage";
19 unsigned long entry;
20 entry = findstage(target1);
21 if (entry) call(entry, bist);
Patrick Georgi546953c2014-11-29 10:38:17 +010022 halt();
Patrick Georgic9fa96d2010-02-24 13:58:23 +000023}