summaryrefslogtreecommitdiffstats
path: root/arch/arm64/include/asm/cacheflush.h
diff options
context:
space:
mode:
authorLaura Abbott <lauraa@codeaurora.org>2014-08-19 21:41:43 +0200
committerWill Deacon <will.deacon@arm.com>2014-09-08 15:39:18 +0200
commit11d91a770f1fff44dafdf88d6089a3451f99c9b6 (patch)
treedb7874516b61d7df4d85e4529b9ea6e1033624e6 /arch/arm64/include/asm/cacheflush.h
parentarm64: Introduce {set,clear}_pte_bit (diff)
downloadlinux-11d91a770f1fff44dafdf88d6089a3451f99c9b6.tar.xz
linux-11d91a770f1fff44dafdf88d6089a3451f99c9b6.zip
arm64: Add CONFIG_DEBUG_SET_MODULE_RONX support
In a similar fashion to other architecture, add the infrastructure and Kconfig to enable DEBUG_SET_MODULE_RONX support. When enabled, module ranges will be marked read-only/no-execute as appropriate. Signed-off-by: Laura Abbott <lauraa@codeaurora.org> [will: fixed off-by-one in module end check] Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/cacheflush.h')
-rw-r--r--arch/arm64/include/asm/cacheflush.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/cacheflush.h b/arch/arm64/include/asm/cacheflush.h
index f2defe1c380c..689b6379188c 100644
--- a/arch/arm64/include/asm/cacheflush.h
+++ b/arch/arm64/include/asm/cacheflush.h
@@ -148,4 +148,8 @@ static inline void flush_cache_vunmap(unsigned long start, unsigned long end)
{
}
+int set_memory_ro(unsigned long addr, int numpages);
+int set_memory_rw(unsigned long addr, int numpages);
+int set_memory_x(unsigned long addr, int numpages);
+int set_memory_nx(unsigned long addr, int numpages);
#endif