aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/cpu/cpu.c
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2016-05-11 07:45:00 -0700
committerBin Meng <bmeng.cn@gmail.com>2016-05-23 15:18:00 +0800
commit0c2b7eef97b00c3d1e5545518b2647b8fbf42537 (patch)
treecab1f41b8bda5bd47c63717a41fa10075cb879ee /arch/x86/cpu/cpu.c
parent789b6dceccbb852b0be235334b713467f88e2f8e (diff)
downloadu-boot-0c2b7eef97b00c3d1e5545518b2647b8fbf42537.zip
u-boot-0c2b7eef97b00c3d1e5545518b2647b8fbf42537.tar.gz
u-boot-0c2b7eef97b00c3d1e5545518b2647b8fbf42537.tar.bz2
x86: Unify reserve_arch() for all x86 boards
Instead of asking each platform to provide reserve_arch(), supply it in arch/x86/cpu/cpu.c in a unified way. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/cpu/cpu.c')
-rw-r--r--arch/x86/cpu/cpu.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/x86/cpu/cpu.c b/arch/x86/cpu/cpu.c
index 1482153..2e27d78 100644
--- a/arch/x86/cpu/cpu.c
+++ b/arch/x86/cpu/cpu.c
@@ -29,6 +29,7 @@
#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>
@@ -751,3 +752,14 @@ int cpu_init_r(void)
return 0;
}
+
+#ifndef CONFIG_EFI_STUB
+int reserve_arch(void)
+{
+#ifdef CONFIG_ENABLE_MRC_CACHE
+ return mrccache_reserve();
+#else
+ return 0;
+#endif
+}
+#endif