This commit provides two fixes for the ARMv8-M built-in stack protection in userspace.S. First, it clears the PSPLIM register before setting the PSP to the privileged stack. In the wake of this, the privilege stack area can now be positioned enywhere, i.e. does not have to be above the user stack area. Second, it removes unncessary push/pop when clearing the PSPLIM register, upon returning from the system call, since the r3 register is not used anymore in this routine. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no> |
||
---|---|---|
.. | ||
arc | ||
arm | ||
common | ||
nios2 | ||
posix | ||
riscv32 | ||
x86 | ||
x86_64 | ||
xtensa | ||
CMakeLists.txt | ||
Kconfig |