lib: sbi_hart: Detect number of supported PMP regions
authorAnup Patel <anup.patel@wdc.com>
Mon, 18 May 2020 06:34:18 +0000 (12:04 +0530)
committerAnup Patel <anup@brainfault.org>
Tue, 19 May 2020 03:49:48 +0000 (09:19 +0530)
commita38bea9341a2da29bec00d5253ac71da8ca06bab
tree167a46716be4bd24d36b64c50412d11c63a15ce1
parent2966510eedf03e47e13f3e1a88039bd4199c1085
lib: sbi_hart: Detect number of supported PMP regions

It is not mandatory for a RISC-V systems to implement all PMP
regions so we have to check all PMPADDRx CSRs to determine excat
number of supported PMP regions.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
include/sbi/sbi_hart.h
lib/sbi/sbi_hart.c
lib/sbi/sbi_init.c
lib/utils/fdt/fdt_fixup.c