* Explicitly add __PRE_RAM__ where it should be added.
[coreboot.git] / src / mainboard / emulation / qemu-x86 / failover.c
1 #define __PRE_RAM__
2 #include <stdint.h>
3 #include <device/pci_def.h>
4 #include <device/pci_ids.h>
5 #include <arch/io.h>
6 #include "arch/romcc_io.h"
7 /* no code inclusion allowed */
8 //#include "pc80/mc146818rtc_early.c"
9 //#include "cpu/x86/lapic/boot_cpu.c"
10
11 static void main(void)
12 {
13 #if 0
14         /* Is this a cpu reset? */
15         if (cpu_init_detected()) {
16                 if (last_boot_normal()) {
17                         asm("jmp __normal_image");
18                 } else {
19                         asm("jmp __cpu_reset");
20                 }
21         }
22
23         /* This is the primary cpu how should I boot? */
24         else if (do_normal_boot()) {
25                 asm("jmp __normal_image");
26         }
27 #endif
28 }
29