Skip to content
Snippets Groups Projects
Commit e86935f7 authored by Huacai Chen's avatar Huacai Chen
Browse files

LoongArch: 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.

Note: We can only set attributes for KVRANGE/XKVRANGE kernel addresses.

Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
parent 34e3c450
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment