summaryrefslogtreecommitdiff
path: root/fs/efivarfs
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2020-10-03 18:28:27 +0300
committerArd Biesheuvel <ardb@kernel.org>2020-10-26 10:02:11 +0300
commitfbc81ec5b85d43a4b22e49ec0e643fa7dec2ea40 (patch)
tree8b99a6ce15a9b0bfc96db687eb6e79418e2c620d /fs/efivarfs
parent3650b228f83adda7e5ee532e2b90429c03f7b9ec (diff)
downloadlinux-fbc81ec5b85d43a4b22e49ec0e643fa7dec2ea40.tar.xz
efi/arm: set HSCTLR Thumb2 bit correctly for HVC calls from HYP
Commit db227c19e68db353 ("ARM: 8985/1: efi/decompressor: deal with HYP mode boot gracefully") updated the EFI entry code to permit firmware to invoke the EFI stub loader in HYP mode, with the MMU either enabled or disabled, neither of which is permitted by the EFI spec, but which does happen in the field. In the MMU on case, we remain in HYP mode as configured by the firmware, and rely on the fact that any HVC instruction issued in this mode will be dispatched via the SVC slot in the HYP vector table. However, this slot will point to a Thumb2 symbol if the kernel is built in Thumb2 mode, and so we have to configure HSCTLR to ensure that the exception handlers are invoked in Thumb2 mode as well. Fixes: db227c19e68db353 ("ARM: 8985/1: efi/decompressor: deal with HYP mode boot gracefully") Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'fs/efivarfs')
0 files changed, 0 insertions, 0 deletions