3fb6ea210a
Before entering userspace, the MPU stack guard is configured to guard the default (i.e. afterwards, the "user") thread stack, as the privileged stack has not yet been set. Upon entering userspace the MPU stack guard needs to be re-programmed to the privileged stack, otherwise, there is a risk that the first system call might be serviced without privileged stack protection, if it occurs before any context-switch. This commit fixes this issue, by calling configure_mpu_stack_guard(..) upon userspace entering. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no> |
||
---|---|---|
.. | ||
core | ||
include | ||
CMakeLists.txt | ||
Kconfig | ||
defconfig |