arch: riscv: pmp: simplify pmp region number computation
Simplify multiple ifdef case in computing region number. Also move these
macros to core_pmp.c because they are only used in one file.
Signed-off-by:
Jim Shu <cwshu@andestech.com>
Loading
Please sign in to comment