aboutsummaryrefslogtreecommitdiff
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorMarc Zyngier <[email protected]>2017-09-26 15:57:16 +0100
committerCatalin Marinas <[email protected]>2017-09-27 12:15:54 +0100
commit5371513fb338fb9989c569dc071326d369d6ade8 (patch)
tree2dd1cfbb2973f06740c382e6f7b13b7f38a952dc /lib/debugobjects.c
parente19b205be43d11bff638cad4487008c48d21c103 (diff)
arm64: Make sure SPsel is always set
When the kernel is entered at EL2 on an ARMv8.0 system, we construct the EL1 pstate and make sure this uses the the EL1 stack pointer (we perform an exception return to EL1h). But if the kernel is either entered at EL1 or stays at EL2 (because we're on a VHE-capable system), we fail to set SPsel, and use whatever stack selection the higher exception level has choosen for us. Let's not take any chance, and make sure that SPsel is set to one before we decide the mode we're going to run in. Cc: <[email protected]> Acked-by: Mark Rutland <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Signed-off-by: Will Deacon <[email protected]> Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions