nuttx/arch/risc-v
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
..
include arch/risc-v: Merge mcause.h into irq.h 2022-01-22 14:57:05 +08:00
src Implement CONFIG_BUILD_PROTECTED with MMU 2022-01-25 20:22:34 +08:00
Kconfig Add simple MMU driver for RISC-V (Sv39) 2022-01-20 20:30:13 +08:00