+1
−0
arch/loongarch/include/asm/set_memory.h
0 → 100644
+17
−0
arch/loongarch/mm/pageattr.c
0 → 100644
+158
−0
Loading
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.
Note: We can only set attributes for KVRANGE/XKVRANGE kernel addresses.
Signed-off-by:
Huacai Chen <chenhuacai@loongson.cn>