Add the coreboot config to CBFS
[coreboot.git] / src / arch / x86 / init / bootblock_normal.c
1 #include <bootblock_common.h>
2 #include <pc80/mc146818rtc.h>
3
4 static void main(unsigned long bist)
5 {
6         if (boot_cpu()) {
7                 bootblock_northbridge_init();
8                 bootblock_southbridge_init();
9                 bootblock_cpu_init();
10         }
11
12 #if CONFIG_USE_OPTION_TABLE
13         sanitize_cmos();
14 #endif
15
16         unsigned long entry;
17         if (do_normal_boot())
18                 entry = findstage("normal/romstage");
19         else
20                 entry = findstage("fallback/romstage");
21
22         if (entry) call(entry, bist);
23
24         /* run fallback if normal can't be found */
25         entry = findstage("fallback/romstage");
26         if (entry) call(entry, bist);
27
28         /* duh. we're stuck */
29         asm volatile ("1:\n\thlt\n\tjmp 1b\n\t");
30 }
31