Patrick Georgi | c9fa96d | 2010-02-24 13:58:23 +0000 | [diff] [blame] | 1 | #include <bootblock_common.h> |
| 2 | |
| 3 | static void main(unsigned long bist) |
| 4 | { |
| 5 | if (boot_cpu()) { |
Kyösti Mälkki | f902248 | 2012-11-14 08:01:44 +0200 | [diff] [blame^] | 6 | bootblock_mainboard_init(); |
Patrick Georgi | fab35e3 | 2011-03-08 07:50:43 +0000 | [diff] [blame] | 7 | |
| 8 | #if CONFIG_USE_OPTION_TABLE |
Kyösti Mälkki | f28dbe0 | 2011-12-05 20:17:17 +0200 | [diff] [blame] | 9 | sanitize_cmos(); |
Patrick Georgi | fab35e3 | 2011-03-08 07:50:43 +0000 | [diff] [blame] | 10 | #endif |
Duncan Laurie | b6e97b1 | 2012-09-09 19:09:56 -0700 | [diff] [blame] | 11 | #if CONFIG_CMOS_POST |
| 12 | cmos_post_init(); |
| 13 | #endif |
Kyösti Mälkki | f28dbe0 | 2011-12-05 20:17:17 +0200 | [diff] [blame] | 14 | } |
Patrick Georgi | fab35e3 | 2011-03-08 07:50:43 +0000 | [diff] [blame] | 15 | |
Patrick Georgi | c9fa96d | 2010-02-24 13:58:23 +0000 | [diff] [blame] | 16 | const char* target1 = "fallback/romstage"; |
| 17 | unsigned long entry; |
| 18 | entry = findstage(target1); |
| 19 | if (entry) call(entry, bist); |
| 20 | asm volatile ("1:\n\thlt\n\tjmp 1b\n\t"); |
| 21 | } |
| 22 | |