blob: 34f55cac35341befd4d3596fae3a0594621a56da [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>
3
4static void main(unsigned long bist)
5{
6 if (boot_cpu()) {
Kyösti Mälkkif9022482012-11-14 08:01:44 +02007 bootblock_mainboard_init();
Patrick Georgifab35e32011-03-08 07:50:43 +00008
9#if CONFIG_USE_OPTION_TABLE
Kyösti Mälkkif28dbe02011-12-05 20:17:17 +020010 sanitize_cmos();
Patrick Georgifab35e32011-03-08 07:50:43 +000011#endif
Duncan Laurieb6e97b12012-09-09 19:09:56 -070012#if CONFIG_CMOS_POST
13 cmos_post_init();
14#endif
Kyösti Mälkkif28dbe02011-12-05 20:17:17 +020015 }
Patrick Georgifab35e32011-03-08 07:50:43 +000016
Patrick Georgic9fa96d2010-02-24 13:58:23 +000017 const char* target1 = "fallback/romstage";
18 unsigned long entry;
19 entry = findstage(target1);
20 if (entry) call(entry, bist);
21 asm volatile ("1:\n\thlt\n\tjmp 1b\n\t");
22}
23