diff options
Diffstat (limited to 'arch/s390/include/asm/set_memory.h')
-rw-r--r-- | arch/s390/include/asm/set_memory.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/s390/include/asm/set_memory.h b/arch/s390/include/asm/set_memory.h index f4362ce1e17a..25f2464dbb7e 100644 --- a/arch/s390/include/asm/set_memory.h +++ b/arch/s390/include/asm/set_memory.h @@ -40,6 +40,11 @@ static inline int set_memory_rox(unsigned long addr, int numpages) return __set_memory(addr, numpages, SET_MEMORY_RO | SET_MEMORY_X); } +static inline int set_memory_rwnx(unsigned long addr, int numpages) +{ + return __set_memory(addr, numpages, SET_MEMORY_RW | SET_MEMORY_NX); +} + static inline int set_memory_4k(unsigned long addr, int numpages) { return __set_memory(addr, numpages, SET_MEMORY_4K); |