zephyr/arch/arm
Ioannis Glaropoulos 3802460e3c arch: arm: invoke MPU reprogramming while in privilege stack
_arch_configure_dynamic_mpu_regions() may re-program the MPU
Stack Guard, to guard the privilege stack for overflows,
(if building with option CONFIG_MPU_STACK_GUARD). There is a
risk of actually overflowing the stack while doing the
re-programming. We minimize the risk by placing the
re-programming function immediately after we have switched to
the privileged stack so that the whole privilege stack area is
available for this critical operation.

Note that the risk for overflow is higher if using the normal
thread stack, since we do not control how much stack is actually
left, when user invokes _arm_userspace_enter().

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2019-02-12 08:29:33 -06:00
..
core arch: arm: invoke MPU reprogramming while in privilege stack 2019-02-12 08:29:33 -06:00
include arch: arm: minor style fixes in funtion and headers' documentation 2019-02-07 11:15:52 -06:00
CMakeLists.txt cmake: Remove dead code LTO references 2018-12-21 21:04:18 +01:00
defconfig
Kconfig kconfig: move soc selection to ZEPHYR_BASE/soc/ 2018-09-13 00:56:48 -04:00