lib: sbi: Configure PMP based on domain memory regions
authorAnup Patel <anup.patel@wdc.com>
Tue, 22 Sep 2020 10:06:15 +0000 (15:36 +0530)
committerAnup Patel <anup@brainfault.org>
Tue, 20 Oct 2020 08:42:54 +0000 (14:12 +0530)
commitc10c30b485e286b7ebe3f63897616107fb05ddce
treedb6bf074edaa26ddb40b706aa297c03347b4cd17
parente856462ac2f191216897a492b8ca02b5b1037e9c
lib: sbi: Configure PMP based on domain memory regions

The PMP configuration on each HART should be only based on the memory
regions of the assigned domain because each domain includes a memory
region to protect the underlying firmware.

This patch updates the sbi_hart_pmp_configure() function accordingly.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
lib/sbi/sbi_hart.c