forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commitfbc81ec
committed
efi/arm: set HSCTLR Thumb2 bit correctly for HVC calls from HYP
Commitdb227c1 ("ARM: 8985/1: efi/decompressor: deal with HYP mode boot gracefully")updated the EFI entry code to permit firmware to invoke the EFI stubloader in HYP mode, with the MMU either enabled or disabled, neitherof which is permitted by the EFI spec, but which does happen in thefield.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 willbe dispatched via the SVC slot in the HYP vector table. However, thisslot will point to a Thumb2 symbol if the kernel is built in Thumb2mode, and so we have to configure HSCTLR to ensure that the exceptionhandlers are invoked in Thumb2 mode as well.Fixes:db227c1 ("ARM: 8985/1: efi/decompressor: deal with HYP mode boot gracefully")Signed-off-by: Ard Biesheuvel <ardb@kernel.org>1 parent3650b22 commitfbc81ec
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1472 | 1472 | | |
1473 | 1473 | | |
1474 | 1474 | | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
1475 | 1478 | | |
1476 | 1479 | | |
1477 | 1480 | | |
| |||
0 commit comments
Comments
(0)