aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorGreentime Hu <[email protected]>2020-01-09 03:17:40 +0000
committerPalmer Dabbelt <[email protected]>2020-02-18 17:41:24 +0000
commitc68a9032299e837b56d356de9250c93094f7e0e3 (patch)
treec5bc94625a84d1d6f3568c344ab300a9b996f837 /net/unix/af_unix.c
parentLinux 5.6-rc2 (diff)
downloadkernel-c68a9032299e837b56d356de9250c93094f7e0e3.tar.gz
kernel-c68a9032299e837b56d356de9250c93094f7e0e3.zip
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 <[email protected]> Reviewed-by: Palmer Dabbelt <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions