lib: sbi: Synchronize PMP settings with virtual memory system
authorHimanshu Chauhan <hchauhan@ventanamicro.com>
Mon, 5 Dec 2022 16:42:31 +0000 (22:12 +0530)
committerAnup Patel <anup@brainfault.org>
Fri, 9 Dec 2022 08:47:56 +0000 (14:17 +0530)
commitcb568b9b294d5b20f7dd416e89b61c8bf0fa375d
treed7f50132e1311f9218fa54998622f305481d9737
parent7b087781c210b756f6c6ca8e66d43a6d3b02af0a
lib: sbi: Synchronize PMP settings with virtual memory system

As per section 3.7.2 of RISC-V Privileged Specification,
PMP settings must be synchronized with the virtual memory
system after PMP settings have been written.

Signed-off-by: Himanshu Chauhan <hchauhan@ventanamicro.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
lib/sbi/sbi_hart.c