diff options
author | Simon Glass <sjg@chromium.org> | 2022-01-04 03:51:13 -0700 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-01-15 10:57:22 +0100 |
commit | 450ce56a118975364437cc466ec804d8ded75d29 (patch) | |
tree | 33ad43f3e1665afb4515d777ca096fd29dca4746 /arch/x86/cpu | |
parent | 25a326b0066b3c449a0a91889b0ce19cb7320237 (diff) | |
download | u-boot-450ce56a118975364437cc466ec804d8ded75d29.tar.gz |
x86: efi: Tweak the code used for the 64-bit EFI app
Add an empty CPU init function to avoid fiddling with low-level CPU
features in the app. Set up the C runtime correctly for 64-bit use
and avoid clearing BSS, since this is done by EFI when U-Boot is loaded.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/cpu')
-rw-r--r-- | arch/x86/cpu/x86_64/cpu.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/cpu/x86_64/cpu.c b/arch/x86/cpu/x86_64/cpu.c index a3674e8e29..6a38761291 100644 --- a/arch/x86/cpu/x86_64/cpu.c +++ b/arch/x86/cpu/x86_64/cpu.c @@ -45,3 +45,8 @@ int cpu_phys_address_size(void) { return CONFIG_CPU_ADDR_BITS; } + +int x86_cpu_init_f(void) +{ + return 0; +} |