diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-05-18 12:04:18 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-05-19 09:19:48 +0530 |
commit | a38bea9341a2da29bec00d5253ac71da8ca06bab (patch) | |
tree | 167a46716be4bd24d36b64c50412d11c63a15ce1 /lib/sbi/sbi_init.c | |
parent | 2966510eedf03e47e13f3e1a88039bd4199c1085 (diff) |
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>
Diffstat (limited to 'lib/sbi/sbi_init.c')
-rw-r--r-- | lib/sbi/sbi_init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sbi/sbi_init.c b/lib/sbi/sbi_init.c index 7b8d6a7..a7fb848 100644 --- a/lib/sbi/sbi_init.c +++ b/lib/sbi/sbi_init.c @@ -68,6 +68,7 @@ static void sbi_boot_prints(struct sbi_scratch *scratch, u32 hartid) sbi_printf("Boot HART ISA : %s\n", str); sbi_hart_get_features_str(scratch, str, sizeof(str)); sbi_printf("BOOT HART Features : %s\n", str); + sbi_printf("BOOT HART PMP Count : %d\n", sbi_hart_pmp_count(scratch)); /* Firmware details */ sbi_printf("Firmware Base : 0x%lx\n", scratch->fw_start); |