From: Bin Meng Date: Tue, 12 Jun 2018 15:36:17 +0000 (-0700) Subject: x86: efi: payload: Add arch_cpu_init() X-Git-Tag: v2018.07-rc2~45^2~8 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3773c6a20a1cd736a340f1141a6d3d8ee3c2ddc6;p=oweals%2Fu-boot.git x86: efi: payload: Add arch_cpu_init() This adds arch_cpu_init() to the payload codes, in preparation for supporting a generic efi payload. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- diff --git a/arch/x86/cpu/efi/payload.c b/arch/x86/cpu/efi/payload.c index 81fb8b5f72..9fd9f57776 100644 --- a/arch/x86/cpu/efi/payload.c +++ b/arch/x86/cpu/efi/payload.c @@ -5,11 +5,9 @@ */ #include -#include #include #include -#include -#include +#include DECLARE_GLOBAL_DATA_PTR; @@ -126,6 +124,13 @@ int dram_init_banksize(void) return 0; } +int arch_cpu_init(void) +{ + post_code(POST_CPU_INIT); + + return x86_cpu_init_f(); +} + int checkcpu(void) { return 0;