summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/cacheflush.h
diff options
context:
space:
mode:
authorLaura Abbott2013-06-17 19:29:13 +0200
committerRussell King2013-12-11 10:53:19 +0100
commit75374ad47c6465de6c098d7b913fe02d6131195c (patch)
treeade5f83cf6baea175e6380c986777f0b7979d940 /arch/arm/include/asm/cacheflush.h
parentARM: add definitions for pte_mkexec/pte_mknexec (diff)
downloadkernel-qcow2-linux-75374ad47c6465de6c098d7b913fe02d6131195c.tar.gz
kernel-qcow2-linux-75374ad47c6465de6c098d7b913fe02d6131195c.tar.xz
kernel-qcow2-linux-75374ad47c6465de6c098d7b913fe02d6131195c.zip
ARM: mm: Define set_memory_* functions for ARM
Other architectures define various set_memory functions to allow attributes to be changed (e.g. set_memory_x, set_memory_rw, etc.) Currently, these functions are missing on ARM. Define these in an appropriate manner for ARM. Signed-off-by: Laura Abbott <lauraa@codeaurora.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include/asm/cacheflush.h')
-rw-r--r--arch/arm/include/asm/cacheflush.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/include/asm/cacheflush.h b/arch/arm/include/asm/cacheflush.h
index ee753f1749cd..e9a49fe0284e 100644
--- a/arch/arm/include/asm/cacheflush.h
+++ b/arch/arm/include/asm/cacheflush.h
@@ -481,4 +481,9 @@ static inline void __sync_cache_range_r(volatile void *p, size_t size)
: : : "r0","r1","r2","r3","r4","r5","r6","r7", \
"r9","r10","lr","memory" )
+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