diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-08-18 09:21:16 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-09-01 07:58:26 +0300 |
commit | 7b0b289887380d2e71210f12b5ce0f3afc011b35 (patch) | |
tree | 14af735edbeccd13b12a41964c959b14b6488cb4 /lib/utils | |
parent | 4f3bad6e43f0e5a1a124847edf910e309ae9d59a (diff) | |
download | opensbi-7b0b289887380d2e71210f12b5ce0f3afc011b35.tar.xz |
lib: sbi: Remove redundant SBI_HART_HAS_PMP feature
The SBI_HART_HAS_PMP feature is redundant because we already
have number of PMP regions returned by sbi_hart_pmp_count().
Checking whether PMP is supported for a HART can be simply done
by checking non-zero value returned by sbi_hart_pmp_count().
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'lib/utils')
-rw-r--r-- | lib/utils/fdt/fdt_fixup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/fdt/fdt_fixup.c b/lib/utils/fdt/fdt_fixup.c index a3bccae..4da7397 100644 --- a/lib/utils/fdt/fdt_fixup.c +++ b/lib/utils/fdt/fdt_fixup.c @@ -199,7 +199,7 @@ int fdt_reserved_memory_fixup(void *fdt) * With above assumption, we create child nodes directly. */ - if (!sbi_hart_has_feature(scratch, SBI_HART_HAS_PMP)) { + if (!sbi_hart_pmp_count(scratch)) { /* * Update the DT with firmware start & size even if PMP is not * supported. This makes sure that supervisor OS is always |