#include #include static void main(unsigned long bist) { unsigned long entry; int boot_mode; if (boot_cpu()) { bootblock_northbridge_init(); bootblock_southbridge_init(); bootblock_cpu_init(); #if CONFIG_USE_OPTION_TABLE sanitize_cmos(); #endif boot_mode = do_normal_boot(); } else { /* Questionable single byte read from CMOS. * Do not add any other CMOS access in the * bootblock for AP CPUs. */ boot_mode = last_boot_normal(); } if (boot_mode) entry = findstage("normal/romstage"); else entry = findstage("fallback/romstage"); if (entry) call(entry, bist); /* run fallback if normal can't be found */ entry = findstage("fallback/romstage"); if (entry) call(entry, bist); /* duh. we're stuck */ asm volatile ("1:\n\thlt\n\tjmp 1b\n\t"); }