nuttx/arch/risc-v
Ville Juven 81188d9c94 Extend the RISC-V PMP functionality
- Add test for mode support, which is architecture dependent
- Add tests for address alignment and region size
- Add option to query for access rights
 - The function goes through every PMP entry and tests if an address
   range from [base, base+size] has been configured for desired
   access rights.
 - If several PMP entries match the range and access rights, the
   information is combined
 - End result is either no access, a partial match was found, or a full
   match was found. Details about the partial match are not provided.

The intent for testing access rights and not just blindly applying them
is a case where they are already set in e.g. a bootloader. In this
case, nothing should be done, unless the configuration does not match,
in which case the software must not continue further.
2022-01-25 20:22:34 +08:00
..
include Extend the RISC-V PMP functionality 2022-01-25 20:22:34 +08:00
src Extend the RISC-V PMP functionality 2022-01-25 20:22:34 +08:00
Kconfig Extend the RISC-V PMP functionality 2022-01-25 20:22:34 +08:00