lib: No need to provide default PMP region using platform callbacks
authorAnup Patel <anup.patel@wdc.com>
Thu, 23 Apr 2020 06:22:30 +0000 (11:52 +0530)
committerAnup Patel <anup@brainfault.org>
Mon, 27 Apr 2020 08:27:27 +0000 (13:57 +0530)
commit1bb00ab3aeabde78579774eef8eadc7b7e765924
tree119d29d80996c9db45105fa9f688ef8b1aef5265
parent9f1b72ce66d659e91013b358939e832fb27223f5
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>
include/sbi/sbi_platform.h
lib/sbi/sbi_hart.c
platform/andes/ae350/platform.c
platform/qemu/virt/platform.c
platform/sifive/fu540/platform.c
platform/spike/platform.c
platform/template/platform.c