After this has been brought up many times before, rename src/arch/i386 to
[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         }
10
11         unsigned long entry;
12         if (do_normal_boot())
13                 entry = findstage("normal/romstage");
14         else
15                 entry = findstage("fallback/romstage");
16
17         if (entry) call(entry, bist);
18
19         /* run fallback if normal can't be found */
20         entry = findstage("fallback/romstage");
21         if (entry) call(entry, bist);
22
23         /* duh. we're stuck */
24         asm volatile ("1:\n\thlt\n\tjmp 1b\n\t");
25 }
26