Skip to content
Commit 7e36bd31 authored by Carlo Caione's avatar Carlo Caione Committed by Anas Nashif
Browse files

arch: aarch64: Use SP_EL0 instead of SP_ELx



ARM64 is currently using SP_ELx as stack pointer for kernel and threads
because everything is running in EL1. If support for EL0 is required, it
is necessary to switch to use SP_EL0 instead, that is the only stack
pointer that can be accessed at all exception levels by threads.

While it is not required to keep using SP_EL0 also during the
exceptions, the current code implementation makes it easier to use the
same stack pointer as the one used by threads also during the
exceptions.

This patch moves the code from using SP_ELx to SP_EL0 and fill in the
missing entries in the vector table.

Signed-off-by: default avatarCarlo Caione <ccaione@baylibre.com>
parent 8f7d7390
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment