summaryrefslogtreecommitdiffstats
path: root/arch/arm64/Kconfig
diff options
context:
space:
mode:
authorArd Biesheuvel2014-07-04 19:41:53 +0200
committerMatt Fleming2014-07-07 21:29:42 +0200
commite15dd4949a937d8e8482f37f8fe493357417f203 (patch)
treed66dba79a540033a0072d7ebfcfa1667783227f2 /arch/arm64/Kconfig
parentefi/x86: Move UEFI Runtime Services wrappers to generic code (diff)
downloadkernel-qcow2-linux-e15dd4949a937d8e8482f37f8fe493357417f203.tar.gz
kernel-qcow2-linux-e15dd4949a937d8e8482f37f8fe493357417f203.tar.xz
kernel-qcow2-linux-e15dd4949a937d8e8482f37f8fe493357417f203.zip
efi/arm64: Preserve FP/SIMD registers on UEFI runtime services calls
According to the UEFI spec section 2.3.6.4, the use of FP/SIMD instructions is allowed, and should adhere to the AAPCS64 calling convention, which states that 'only the bottom 64 bits of each value stored in registers v8-v15 need to be preserved' (section 5.1.2). This applies equally to UEFI Runtime Services called by the kernel, so make sure the FP/SIMD register file is preserved in this case. We do this by enabling the wrappers for UEFI Runtime Services (CONFIG_EFI_RUNTIME_WRAPPERS) and inserting calls to kernel_neon_begin()and kernel_neon_end() into these wrappers. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'arch/arm64/Kconfig')
-rw-r--r--arch/arm64/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 7295419165e1..2cc14cef01bd 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -298,6 +298,7 @@ config EFI
select LIBFDT
select UCS2_STRING
select EFI_PARAMS_FROM_FDT
+ select EFI_RUNTIME_WRAPPERS
default y
help
This option provides support for runtime services provided