projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8f25c2
)
x86: qemu: Hide arch_cpu_init() and print_cpuinfo() for U-Boot proper
author
Bin Meng
<
[email protected]
>
Wed, 18 Jan 2017 11:32:55 +0000
(
03:32
-0800)
committer
Bin Meng
<
[email protected]
>
Tue, 7 Feb 2017 05:23:42 +0000
(13:23 +0800)
arch_cpu_init() and print_cpuinfo() should be only available in SPL
build.
Signed-off-by: Bin Meng <
[email protected]
>
Reviewed-by: Simon Glass <
[email protected]
>
arch/x86/cpu/qemu/qemu.c
patch
|
blob
|
history
diff --git
a/arch/x86/cpu/qemu/qemu.c
b/arch/x86/cpu/qemu/qemu.c
index c3092f2b9fb872f408750e9ef70e81d09b25dac3..85e24813851130fc99cc83eb8b3c419fb0d007d9 100644
(file)
--- 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);