zephyr/arch
Ioannis Glaropoulos 3fb6ea210a arch: arm: re-program MPU stack guard upon userspace enter
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>
2018-10-15 12:19:09 -05:00
..
arc arch: setup logging using new logger 2018-10-08 17:49:12 -04:00
arm arch: arm: re-program MPU stack guard upon userspace enter 2018-10-15 12:19:09 -05:00
common tests: benchmarks: timing_info: Enable benchmarks for riscv32. 2018-08-20 06:51:25 -07:00
nios2 kernel: Using the same paramenters names in a specific function 2018-09-28 07:58:19 +05:30
posix POSIX arch: Add stub for sys_arch_reboot() 2018-10-09 16:15:45 -04:00
riscv32 arch: Add LOG_PANIC to fault handlers 2018-09-27 13:11:26 +05:30
x86 kernel: Using the same paramenters names in a specific function 2018-09-28 07:58:19 +05:30
xtensa kernel: Using the same paramenters names in a specific function 2018-09-28 07:58:19 +05:30
CMakeLists.txt arch: Cmake: Add __ZEPHYR_SUPERVISOR__ macro for arch files. 2018-05-15 17:48:18 +03:00
Kconfig arch: add big endian support 2018-10-10 09:28:05 -04:00