blob: 204636e072a2c99ea3f23ee722325212d8a7d837 [file] [log] [blame]
Patrick Georgic9fa96d2010-02-24 13:58:23 +00001#include <bootblock_common.h>
2
3static void main(unsigned long bist)
4{
5 if (boot_cpu()) {
Kyösti Mälkkif9022482012-11-14 08:01:44 +02006 bootblock_mainboard_init();
Patrick Georgifab35e32011-03-08 07:50:43 +00007
8#if CONFIG_USE_OPTION_TABLE
Kyösti Mälkkif28dbe02011-12-05 20:17:17 +02009 sanitize_cmos();
Patrick Georgifab35e32011-03-08 07:50:43 +000010#endif
Duncan Laurieb6e97b12012-09-09 19:09:56 -070011#if CONFIG_CMOS_POST
12 cmos_post_init();
13#endif
Kyösti Mälkkif28dbe02011-12-05 20:17:17 +020014 }
Patrick Georgifab35e32011-03-08 07:50:43 +000015
Patrick Georgic9fa96d2010-02-24 13:58:23 +000016 const char* target1 = "fallback/romstage";
17 unsigned long entry;
18 entry = findstage(target1);
19 if (entry) call(entry, bist);
20 asm volatile ("1:\n\thlt\n\tjmp 1b\n\t");
21}
22