Ard Biesheuvel e15dd4949a 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>
2014-07-07 20:29:42 +01:00
..
2012-09-17 13:42:21 +01:00
2014-05-29 09:08:08 +01:00
2014-04-30 19:57:04 +01:00
2014-05-16 10:05:11 +01:00
2012-12-05 11:26:49 +00:00
2012-09-17 13:42:04 +01:00
2014-02-26 11:16:25 +00:00
2014-05-15 10:16:30 -04:00
2014-05-16 10:05:11 +01:00
2014-05-16 10:05:11 +01:00
2013-02-14 09:17:29 -05:00