riscv: add ARCH_HAS_SET_MEMORY support
authorZong Li <zong.li@sifive.com>
Mon, 9 Mar 2020 16:55:36 +0000 (00:55 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 26 Mar 2020 16:24:30 +0000 (09:24 -0700)
commitd3ab332a5021235a74fd832a49c6a99404920d88
treeba42ec3402a210cf0ba0989696b3069ede5943bf
parent9f40b6e77d2f888a8c0608036eb124cedb6d2434
riscv: add ARCH_HAS_SET_MEMORY support

Add set_memory_ro/rw/x/nx architecture hooks to change the page
attribution.

Use own set_memory.h rather than generic set_memory.h
(i.e. include/asm-generic/set_memory.h), because we want to add other
function prototypes here.

Signed-off-by: Zong Li <zong.li@sifive.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/Kconfig
arch/riscv/include/asm/set_memory.h [new file with mode: 0644]
arch/riscv/mm/Makefile
arch/riscv/mm/pageattr.c [new file with mode: 0644]