diff options
author | Laura Abbott <lauraa@codeaurora.org> | 2014-08-19 20:41:43 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2014-09-08 14:39:18 +0100 |
commit | 11d91a770f1fff44dafdf88d6089a3451f99c9b6 (patch) | |
tree | db7874516b61d7df4d85e4529b9ea6e1033624e6 /arch/arm64/include/asm/cacheflush.h | |
parent | b6d4f2800b7bad654caf00654f4bff21594ef838 (diff) | |
download | op-kernel-dev-11d91a770f1fff44dafdf88d6089a3451f99c9b6.zip op-kernel-dev-11d91a770f1fff44dafdf88d6089a3451f99c9b6.tar.gz |
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.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/cacheflush.h b/arch/arm64/include/asm/cacheflush.h index f2defe1..689b637 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 |