Skip to content
Snippets Groups Projects
Commit 22e99fa5 authored by Heiko Carstens's avatar Heiko Carstens Committed by Vasily Gorbik
Browse files

s390/mm: implement set_memory_rox()


Provide the s390 specific native set_memory_rox() implementation to avoid
frequent set_memory_ro(); set_memory_x() call pairs.

This is the s390 variant of commit 60463628 ("x86/mm: Implement native
set_memory_rox()").

Reviewed-by: default avatarAlexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
parent bac30ea9
No related branches found
No related tags found
No related merge requests found
...@@ -34,6 +34,12 @@ static inline int set_memory_x(unsigned long addr, int numpages) ...@@ -34,6 +34,12 @@ static inline int set_memory_x(unsigned long addr, int numpages)
return __set_memory(addr, numpages, SET_MEMORY_X); return __set_memory(addr, numpages, SET_MEMORY_X);
} }
#define set_memory_rox set_memory_rox
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_4k(unsigned long addr, int numpages) static inline int set_memory_4k(unsigned long addr, int numpages)
{ {
return __set_memory(addr, numpages, SET_MEMORY_4K); return __set_memory(addr, numpages, SET_MEMORY_4K);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment