aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorMarc Zyngier <[email protected]>2022-06-30 17:04:53 +0100
committerWill Deacon <[email protected]>2022-07-01 15:22:51 +0100
commitb65e411d6cc2f12a728cabe66b930c63c527a340 (patch)
treeb6a307dc0e11c1201da9e3ed852b5d737dad30a6 /lib/mpi/mpi-sub-ui.c
parent7ddb0c3df7881206dcd8339c8dabf0318a781f91 (diff)
arm64: Save state of HCR_EL2.E2H before switch to EL1
As we're about to switch the way E2H-stuck CPUs boot, save the boot CPU E2H state as a flag tied to the boot mode that can then be checked by the idreg override code. This allows us to replace the is_kernel_in_hyp_mode() check with a simple comparison with this state, even when running at EL1. Note that this flag isn't saved in __boot_cpu_mode, and is only kept in a register in the assembly code. Use with caution. Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions