diff options
author | Laura Abbott <lauraa@codeaurora.org> | 2013-06-17 13:29:13 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-12-11 04:53:19 -0500 |
commit | 75374ad47c6465de6c098d7b913fe02d6131195c (patch) | |
tree | ade5f83cf6baea175e6380c986777f0b7979d940 /arch/arm/include | |
parent | 27ec8da4ace46900a71b8462157aa2bc88ff5d2c (diff) |
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')
-rw-r--r-- | arch/arm/include/asm/cacheflush.h | 5 |
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) | |||
481 | : : : "r0","r1","r2","r3","r4","r5","r6","r7", \ | 481 | : : : "r0","r1","r2","r3","r4","r5","r6","r7", \ |
482 | "r9","r10","lr","memory" ) | 482 | "r9","r10","lr","memory" ) |
483 | 483 | ||
484 | int set_memory_ro(unsigned long addr, int numpages); | ||
485 | int set_memory_rw(unsigned long addr, int numpages); | ||
486 | int set_memory_x(unsigned long addr, int numpages); | ||
487 | int set_memory_nx(unsigned long addr, int numpages); | ||
488 | |||
484 | #endif | 489 | #endif |