summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2016-05-11 07:45:01 -0700
committerBin Meng <bmeng.cn@gmail.com>2016-05-23 15:18:00 +0800
commitd19c90747d8975a523489f863984c521ae72ce39 (patch)
tree3fd0986f3f6ef22c7b7f6856ecb302207f977252 /arch/x86
parent0c2b7eef97b00c3d1e5545518b2647b8fbf42537 (diff)
downloadblackbird-obmc-uboot-d19c90747d8975a523489f863984c521ae72ce39.tar.gz
blackbird-obmc-uboot-d19c90747d8975a523489f863984c521ae72ce39.zip
x86: Reserve configuration tables in high memory
When SeaBIOS is on, reserve configuration tables in reserve_arch(). Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/cpu/cpu.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/arch/x86/cpu/cpu.c b/arch/x86/cpu/cpu.c
index 2e27d782d1..e522ff3b7f 100644
--- a/arch/x86/cpu/cpu.c
+++ b/arch/x86/cpu/cpu.c
@@ -25,6 +25,7 @@
#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>
@@ -757,9 +758,13 @@ int cpu_init_r(void)
int reserve_arch(void)
{
#ifdef CONFIG_ENABLE_MRC_CACHE
- return mrccache_reserve();
-#else
- return 0;
+ mrccache_reserve();
+#endif
+
+#ifdef CONFIG_SEABIOS
+ high_table_reserve();
#endif
+
+ return 0;
}
#endif
OpenPOWER on IntegriCloud