linux/arch/riscv/include/asm
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
..
Kbuild asm-generic: Make dma-contiguous.h a mandatory include/asm header 2020-02-04 11:38:59 +01:00
asm-offsets.h
asm-prototypes.h
asm.h
atomic.h
barrier.h
bitops.h
bug.h
cache.h
cacheflush.h
clint.h
cmpxchg.h
csr.h riscv: set pmp configuration if kernel is running in M-mode 2020-02-18 09:41:24 -08:00
current.h
delay.h
elf.h
fence.h
fixmap.h
ftrace.h
futex.h
hugetlb.h
hwcap.h
image.h
io.h
irq.h
irqflags.h
kasan.h riscv: Add KASAN support 2020-01-22 13:09:58 -08:00
kprobes.h
linkage.h
mmio.h
mmiowb.h
mmu.h
mmu_context.h
module.h
page.h riscv: mm: add support for CONFIG_DEBUG_VIRTUAL 2020-01-23 10:40:06 -08:00
pci.h
perf_event.h
pgalloc.h
pgtable-32.h
pgtable-64.h riscv: mm: add p?d_leaf() definitions 2020-02-04 03:05:24 +00:00
pgtable-bits.h
pgtable.h riscv: mm: add p?d_leaf() definitions 2020-02-04 03:05:24 +00:00
processor.h
ptrace.h
sbi.h
seccomp.h
smp.h
sparsemem.h
spinlock.h
spinlock_types.h
string.h riscv: Add KASAN support 2020-01-22 13:09:58 -08:00
switch_to.h
syscall.h
thread_info.h
timex.h
tlb.h
tlbflush.h
uaccess.h
unistd.h
vdso.h
vmalloc.h
word-at-a-time.h