x86/speculation/mds: Fix documentation typo
[linux/fpc-iii.git] / arch / s390 / include / asm / set_memory.h
blobc59a83536c70e8886a429bff46edd8bfbf0f99aa
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASMS390_SET_MEMORY_H
3 #define _ASMS390_SET_MEMORY_H
5 #define SET_MEMORY_RO 1UL
6 #define SET_MEMORY_RW 2UL
7 #define SET_MEMORY_NX 4UL
8 #define SET_MEMORY_X 8UL
10 int __set_memory(unsigned long addr, int numpages, unsigned long flags);
12 static inline int set_memory_ro(unsigned long addr, int numpages)
14 return __set_memory(addr, numpages, SET_MEMORY_RO);
17 static inline int set_memory_rw(unsigned long addr, int numpages)
19 return __set_memory(addr, numpages, SET_MEMORY_RW);
22 static inline int set_memory_nx(unsigned long addr, int numpages)
24 return __set_memory(addr, numpages, SET_MEMORY_NX);
27 static inline int set_memory_x(unsigned long addr, int numpages)
29 return __set_memory(addr, numpages, SET_MEMORY_X);
32 #endif