Skip to content
Commit 463b1c93 authored by Jaxson Han's avatar Jaxson Han Committed by Carles Cufí
Browse files

arch: arm64: Add safe exception stack init function



Add safe exception stack init function which does several things:
1) setting current cpu safe exception stack pointer to its corresponding
stack top.
2) init sp_el0 with the above safe exception stack.
That makes sure the sp_el0 points to per-cpu safe_stack in the kernel
space.
3) init the current_stack_limit and corrupted_sp with 0

Signed-off-by: default avatarJaxson Han <jaxson.han@arm.com>
parent 3a5fa049
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment