Ron,
[coreboot.git] / src / mainboard / via / epia-n / failover.c
1 #define ASSEMBLY 1
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 #include "pc80/mc146818rtc_early.c"
8
9 static unsigned long main(unsigned long bist)
10 {
11 #if 0
12         /* This is the primary cpu how should I boot? */
13         if (do_normal_boot()) {
14                 goto normal_image;
15         }
16         else {
17                 goto fallback_image;
18         }
19  normal_image:
20         asm volatile ("jmp __normal_image" 
21                 : /* outputs */ 
22                 : "a" (bist) /* inputs */
23                 : /* clobbers */
24                 );
25  cpu_reset:
26         asm volatile ("jmp __cpu_reset"
27                 : /* outputs */ 
28                 : "a"(bist) /* inputs */
29                 : /* clobbers */
30                 );
31  fallback_image:
32 #endif
33         return bist;
34 }