diff options
author | Alexander Graf <agraf@suse.de> | 2019-02-11 15:07:17 +0100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2019-02-13 09:40:06 +0100 |
commit | 2f8ab1218f74dbaeffffb0a53094ead58bee41c5 (patch) | |
tree | 3681897c5f9d72ca16f04b0df6828f6df2074c13 /arch/arm/cpu/armv8/smccc-call.S | |
parent | 6f8f4217e75d2e651b29c065e111da22658f7e07 (diff) | |
download | u-boot-2f8ab1218f74dbaeffffb0a53094ead58bee41c5.zip u-boot-2f8ab1218f74dbaeffffb0a53094ead58bee41c5.tar.gz u-boot-2f8ab1218f74dbaeffffb0a53094ead58bee41c5.tar.bz2 |
arm: Leave smccc calls in .text when efi_loader=n
Commit 81ea00838c6 ("efi_loader: PSCI reset and shutdown") put the SMCCC
assembly code into the efi specific code section. This is wrong when we
do not have EFI_LOADER enabled, as that strips efi runtime sections from
the output binary
Reported-by: Michal Simek <monstr@monstr.eu>
Reported-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Tested-by: Michal Simek <monstr@monstr.eu>
Fixes: 81ea00838c6 ("efi_loader: PSCI reset and shutdown")
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/arm/cpu/armv8/smccc-call.S')
-rw-r--r-- | arch/arm/cpu/armv8/smccc-call.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv8/smccc-call.S b/arch/arm/cpu/armv8/smccc-call.S index 86de4b4..dc92b28 100644 --- a/arch/arm/cpu/armv8/smccc-call.S +++ b/arch/arm/cpu/armv8/smccc-call.S @@ -6,7 +6,9 @@ #include <linux/arm-smccc.h> #include <generated/asm-offsets.h> +#ifdef CONFIG_EFI_LOADER .section .text.efi_runtime +#endif .macro SMCCC instr .cfi_startproc |