summaryrefslogtreecommitdiff
path: root/arch/x86/cpu/cpu.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2016-05-23 18:32:47 -0400
committerTom Rini <trini@konsulko.com>2016-05-23 18:32:47 -0400
commit6d54868eeb2697c9a905c4d3521efbacc44c5258 (patch)
tree6ad3ae03a0083d1a50a6152bd6dcad5630ce7823 /arch/x86/cpu/cpu.c
parentd7d000311285e4b8d11e089ca13ea456a01be3b8 (diff)
parent8216b11cdd50515fbc423a4b2709a00865b8621d (diff)
downloadu-boot-imx-6d54868eeb2697c9a905c4d3521efbacc44c5258.zip
u-boot-imx-6d54868eeb2697c9a905c4d3521efbacc44c5258.tar.gz
u-boot-imx-6d54868eeb2697c9a905c4d3521efbacc44c5258.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-x86
Diffstat (limited to 'arch/x86/cpu/cpu.c')
-rw-r--r--arch/x86/cpu/cpu.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/x86/cpu/cpu.c b/arch/x86/cpu/cpu.c
index 233a6c8..e522ff3 100644
--- a/arch/x86/cpu/cpu.c
+++ b/arch/x86/cpu/cpu.c
@@ -25,10 +25,12 @@
#include <errno.h>
#include <malloc.h>
#include <asm/control_regs.h>
+#include <asm/coreboot_tables.h>
#include <asm/cpu.h>
#include <asm/lapic.h>
#include <asm/microcode.h>
#include <asm/mp.h>
+#include <asm/mrccache.h>
#include <asm/msr.h>
#include <asm/mtrr.h>
#include <asm/post.h>
@@ -661,10 +663,20 @@ void show_boot_progress(int val)
}
#ifndef CONFIG_SYS_COREBOOT
+/*
+ * Implement a weak default function for boards that optionally
+ * need to clean up the system before jumping to the kernel.
+ */
+__weak void board_final_cleanup(void)
+{
+}
+
int last_stage_init(void)
{
write_tables();
+ board_final_cleanup();
+
return 0;
}
#endif
@@ -741,3 +753,18 @@ int cpu_init_r(void)
return 0;
}
+
+#ifndef CONFIG_EFI_STUB
+int reserve_arch(void)
+{
+#ifdef CONFIG_ENABLE_MRC_CACHE
+ mrccache_reserve();
+#endif
+
+#ifdef CONFIG_SEABIOS
+ high_table_reserve();
+#endif
+
+ return 0;
+}
+#endif