zephyr/arch
Nicolas Pitre 147728775f riscv: pmp: properly initialize per-thread m-mode/u-mode entry array
Retrieve the pmpaddr value matching the last global PMP slot and add it
to the per-thread m-mode and u-mode entry array. Even if that value is
not written out again on thread context switch, that value can still be
used by set_pmp_entry() to attempt a single-slot TOR mapping with it.

Nicely abstract this with the new z_riscv_pmp_thread_init() where the
PMP_M_MODE(thread) and PMP_U_MODE(thread) argument generators can be
used.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2022-06-23 15:56:00 -05:00
..
arc ARC: define PROPERTY_OUTPUT_FORMAT for all ARC elf formats 2022-05-10 14:12:25 -04:00
arm arch: arm: Migrate to K_KERNEL_STACK_ARRAY_DECLARE 2022-06-20 10:25:52 +02:00
arm64 arch: arm64: Disable infinite recursion warning for discard_table 2022-06-16 16:02:23 -04:00
common arch: gen_isr_tables: migrate to <zephyr/...> include prefix 2022-05-09 12:45:29 -04:00
mips asm: update files with <zephyr/...> include prefix 2022-05-09 12:45:29 -04:00
nios2 asm: update files with <zephyr/...> include prefix 2022-05-09 12:45:29 -04:00
posix include: add more missing zephyr/ prefixes 2022-05-27 15:20:27 -07:00
riscv riscv: pmp: properly initialize per-thread m-mode/u-mode entry array 2022-06-23 15:56:00 -05:00
sparc asm: update files with <zephyr/...> include prefix 2022-05-09 12:45:29 -04:00
x86 all: logging: Remove log_strdup function 2022-06-23 13:42:23 +02:00
xtensa debug: coredump: add xtensa intel adsp, support toolchains 2022-06-23 15:44:45 -04:00
CMakeLists.txt cmake: fix include directories to work with out-of-tree arch 2020-08-05 08:06:07 -04:00
Kconfig arch/xtensa: Add CCOUNT-based timing API 2022-06-07 19:04:42 +02:00