2010-02-24 14:58:23 +01:00
|
|
|
#include <bootblock_common.h>
|
|
|
|
|
|
|
|
static void main(unsigned long bist)
|
|
|
|
{
|
|
|
|
if (boot_cpu()) {
|
2012-11-14 07:01:44 +01:00
|
|
|
bootblock_mainboard_init();
|
2011-03-08 08:50:43 +01:00
|
|
|
|
|
|
|
#if CONFIG_USE_OPTION_TABLE
|
2011-12-05 19:17:17 +01:00
|
|
|
sanitize_cmos();
|
2012-09-10 04:09:56 +02:00
|
|
|
#endif
|
|
|
|
#if CONFIG_CMOS_POST
|
|
|
|
cmos_post_init();
|
2011-03-08 08:50:43 +01:00
|
|
|
#endif
|
2011-12-05 19:17:17 +01:00
|
|
|
}
|
2011-03-08 08:50:43 +01:00
|
|
|
|
2010-02-24 14:58:23 +01:00
|
|
|
const char* target1 = "fallback/romstage";
|
|
|
|
unsigned long entry;
|
|
|
|
entry = findstage(target1);
|
|
|
|
if (entry) call(entry, bist);
|
|
|
|
asm volatile ("1:\n\thlt\n\tjmp 1b\n\t");
|
|
|
|
}
|
|
|
|
|