zephyr/arch
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
..
arc power: Fix naming of Kconfig options controlling deep sleep states 2019-02-12 07:46:32 -05:00
arm arch: arm: invoke MPU reprogramming while in privilege stack 2019-02-12 08:29:33 -06:00
common gen_isr_tables: Fix _sw_isr_table generation for multi-level IRQs 2019-02-06 10:13:25 -05:00
nios2
posix kernel: Split reschdule & pend into irq/spin lock versions 2019-02-08 14:49:39 -05:00
riscv32 arch: riscv32: Fix trivial comment 2019-01-31 07:40:24 -05:00
x86 power: Fix naming of Kconfig options controlling deep sleep states 2019-02-12 07:46:32 -05:00
x86_64 cmake: Use a variable for 'zephyr_prebuilt' 2019-01-19 07:21:55 -05:00
xtensa esp32: fix build error regarding multiplt BIT() definitions 2019-01-11 15:05:31 -08:00
CMakeLists.txt Build: Added support for out-of-tree Arch 2019-02-07 17:00:43 -05:00
Kconfig power: Fix naming of Kconfig options controlling deep sleep states 2019-02-12 07:46:32 -05:00