nuttx/boards/risc-v/mpfs/icicle
Ville Juven 8a4881c4e5 Implement CONFIG_BUILD_PROTECTED with MMU
NOTE: THIS ONLY WORKS WHEN KERNEL RUNS IN M-MODE FOR NOW

This frees the PMP for other use, e.g. HART memory separation.

The page tables are statically allocated, 1 per level.

This feature is now behind CONFIG_MPFS_USE_MMU_AS_MPU, because
only the MPFS target supports this (others are not tested).

If the MMU is used for memory separation within a HART, the PMP must
still be configured to allow user access to the memory mapped for the
HART, because PMP *rekoves* access by default. At this point all of
the user memory as well as the kernel RAM are opened.

A more flexible solution for PMP configuration will follow.
2022-01-25 20:22:34 +08:00
..
configs Implement CONFIG_BUILD_PROTECTED with MMU 2022-01-25 20:22:34 +08:00
include include: fix double include pre-processor guards 2022-01-16 11:11:14 -03:00
scripts Implement CONFIG_BUILD_PROTECTED with MMU 2022-01-25 20:22:34 +08:00
src include: fix double include pre-processor guards 2022-01-16 11:11:14 -03:00
Kconfig