zephyr/arch
Nicolas Pitre 8d485d4a24 riscv: pmp: actually activate stack overflow protection during boot
Before this, stack protection would be effective only after switching to
the first thread.

Even before the first thread is created, the kernel init code uses the
IRQ stack to set things up. Let's make sure this is safeguarded as well.

This also fixes the incompatibility between CONFIG_RISCV_PMP and
CONFIG_RISCV_ALWAYS_SWITCH_THROUGH_ECALL, the later needing an exception
call to switch to the first thread and exception code assuming stack
guard is already set up in the PMP.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2024-07-11 18:22:08 -04:00
..
arc everywhere: replace double words 2024-06-25 06:05:35 -04:00
arm arch: arm: cortex_m: add ip & lr to the clobber list 2024-07-10 11:58:13 -04:00
arm64 arch/arm64/mmu: improve debugging output 2024-06-26 13:06:42 -04:00
common everywhere: replace #if IS_ENABLED() as per docs 2024-06-28 07:20:32 -04:00
mips arch: remove the use of z_arch_esf_t completely from internal 2024-06-04 14:02:51 -05:00
nios2 arch: remove the use of z_arch_esf_t completely from internal 2024-06-04 14:02:51 -05:00
posix build: namespace the generated headers with zephyr/ 2024-05-28 22:03:55 +02:00
riscv riscv: pmp: actually activate stack overflow protection during boot 2024-07-11 18:22:08 -04:00
sparc arch: remove the use of z_arch_esf_t completely from internal 2024-06-04 14:02:51 -05:00
x86 arch: x86: corrected parameter names 2024-06-27 20:06:20 -04:00
xtensa xtensa: mmu: clear ZSR_DEPC_SAVE at boot 2024-06-28 20:53:37 -04:00
archs.yml hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
CMakeLists.txt cmake: enable -Wshadow partially for in-tree code 2023-08-22 11:39:58 +02:00
Kconfig everywhere: replace double words 2024-06-22 05:40:22 -04:00
Kconfig.v1 hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
Kconfig.v2 hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00