diff options
author | Greentime Hu <greentime.hu@sifive.com> | 2020-01-09 11:17:40 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-03-21 08:15:41 +0100 |
commit | 518c7d6fc19293181cbb23579728d1c1ab1022ad (patch) | |
tree | 42d58e6fb3e6ef9d72108931b45df0416eb2ee0b /tools | |
parent | 8b3bdb09e1ed20fa2e4150b069525040f574e251 (diff) |
riscv: set pmp configuration if kernel is running in M-mode
[ Upstream commit c68a9032299e837b56d356de9250c93094f7e0e3 ]
When the kernel is running in S-mode, the expectation is that the
bootloader or SBI layer will configure the PMP to allow the kernel to
access physical memory. But, when the kernel is running in M-mode and is
started with the ELF "loader", there's probably no bootloader or SBI layer
involved to configure the PMP. Thus, we need to configure the PMP
ourselves to enable the kernel to access all regions.
Signed-off-by: Greentime Hu <greentime.hu@sifive.com>
Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions