summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2020-04-23 09:22:30 +0300
committerAnup Patel <anup@brainfault.org>2020-04-27 11:27:27 +0300
commit1bb00ab3aeabde78579774eef8eadc7b7e765924 (patch)
tree119d29d80996c9db45105fa9f688ef8b1aef5265 /include
parent9f1b72ce66d659e91013b358939e832fb27223f5 (diff)
downloadopensbi-1bb00ab3aeabde78579774eef8eadc7b7e765924.tar.xz
lib: No need to provide default PMP region using platform callbacks
The default (usually last) PMP region provides S-mode access to complete memory range not covered by other PMP regions. Currently, the default PMP region is described as platform specific PMP region which is not appropriate because all platforms need it and default PMP region should be part of generic library. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/sbi/sbi_platform.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/sbi/sbi_platform.h b/include/sbi/sbi_platform.h
index 847e174..fc2913d 100644
--- a/include/sbi/sbi_platform.h
+++ b/include/sbi/sbi_platform.h
@@ -492,8 +492,9 @@ static inline int sbi_platform_pmp_region_info(const struct sbi_platform *plat,
ulong *log2size)
{
if (plat && sbi_platform_ops(plat)->pmp_region_info)
- return sbi_platform_ops(plat)->pmp_region_info(hartid, index, prot, addr,
- log2size);
+ return sbi_platform_ops(plat)->pmp_region_info(hartid, index,
+ prot, addr,
+ log2size);
return 0;
}