summaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2017-01-18 03:32:55 -0800
committerBin Meng <bmeng.cn@gmail.com>2017-02-07 13:23:42 +0800
commite760feb19f227d830d0a0751a42a2cf5dbcefa28 (patch)
treebf93841ba51395e6362dc3ef385aab6d8af412b9 /arch/x86
parentd8f25c2a5aa6dc5d20ee82d2079ef785554a4218 (diff)
downloadu-boot-imx-e760feb19f227d830d0a0751a42a2cf5dbcefa28.zip
u-boot-imx-e760feb19f227d830d0a0751a42a2cf5dbcefa28.tar.gz
u-boot-imx-e760feb19f227d830d0a0751a42a2cf5dbcefa28.tar.bz2
x86: qemu: Hide arch_cpu_init() and print_cpuinfo() for U-Boot proper
arch_cpu_init() and print_cpuinfo() should be only available in SPL build. 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/qemu/qemu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/cpu/qemu/qemu.c b/arch/x86/cpu/qemu/qemu.c
index c3092f2..85e2481 100644
--- a/arch/x86/cpu/qemu/qemu.c
+++ b/arch/x86/cpu/qemu/qemu.c
@@ -137,14 +137,17 @@ static void qemu_chipset_init(void)
#endif
}
+#if !CONFIG_IS_ENABLED(SPL_X86_32BIT_INIT)
int arch_cpu_init(void)
{
post_code(POST_CPU_INIT);
return x86_cpu_init_f();
}
+#endif
-#ifndef CONFIG_EFI_STUB
+#if !CONFIG_IS_ENABLED(EFI_STUB) && \
+ !CONFIG_IS_ENABLED(SPL_X86_32BIT_INIT)
int print_cpuinfo(void)
{
post_code(POST_CPU_INFO);