5d7c611aa7df6f29c675c5b9a4015199e05a4a9a
[coreboot.git] / src / arch / x86 / init / bootblock_simple.c
1 #include <bootblock_common.h>
2
3 static void main(unsigned long bist)
4 {
5         if (boot_cpu()) {
6                 bootblock_northbridge_init();
7                 bootblock_southbridge_init();
8                 bootblock_cpu_init();
9         }
10
11 #if CONFIG_USE_OPTION_TABLE
12         sanitize_cmos();
13 #endif
14
15         const char* target1 = "fallback/romstage";
16         unsigned long entry;
17         entry = findstage(target1);
18         if (entry) call(entry, bist);
19         asm volatile ("1:\n\thlt\n\tjmp 1b\n\t");
20 }
21