linux_dsm_epyc7002/arch/riscv/include
Greentime Hu c68a903229
riscv: set pmp configuration if kernel is running in M-mode
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>
2020-02-18 09:41:24 -08:00
..
asm riscv: set pmp configuration if kernel is running in M-mode 2020-02-18 09:41:24 -08:00
uapi/asm riscv, bpf: Add missing uapi header for BPF_PROG_TYPE_PERF_EVENT programs 2019-12-19 16:03:31 +01:00