1 #include <cpu/x86/lapic/boot_cpu.c>
3 #ifdef CONFIG_BOOTBLOCK_CPU_INIT
4 #include CONFIG_BOOTBLOCK_CPU_INIT
6 static void bootblock_cpu_init(void) { }
8 #ifdef CONFIG_BOOTBLOCK_NORTHBRIDGE_INIT
9 #include CONFIG_BOOTBLOCK_NORTHBRIDGE_INIT
11 static void bootblock_northbridge_init(void) { }
13 #ifdef CONFIG_BOOTBLOCK_SOUTHBRIDGE_INIT
14 #include CONFIG_BOOTBLOCK_SOUTHBRIDGE_INIT
16 static void bootblock_southbridge_init(void) { }
19 #include <arch/cbfs.h>
21 #if CONFIG_USE_OPTION_TABLE
22 #include <pc80/mc146818rtc.h>
24 static void sanitize_cmos(void)
26 if (cmos_error() || !cmos_chksum_valid()) {
27 unsigned char *cmos_default = (unsigned char*)walkcbfs("cmos.default");
30 for (i = 14; i < 128; i++) {
31 cmos_write(cmos_default[i], i);