xref: /openbmc/qemu/linux-headers/asm-powerpc/mman.h (revision 69b81893bc28feb678188fbcdce52eff1609bdad)
18cf108c5SZhang Yi /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
28cf108c5SZhang Yi /*
38cf108c5SZhang Yi  * This program is free software; you can redistribute it and/or
48cf108c5SZhang Yi  * modify it under the terms of the GNU General Public License
58cf108c5SZhang Yi  * as published by the Free Software Foundation; either version
68cf108c5SZhang Yi  * 2 of the License, or (at your option) any later version.
78cf108c5SZhang Yi  */
88cf108c5SZhang Yi #ifndef _ASM_POWERPC_MMAN_H
98cf108c5SZhang Yi #define _ASM_POWERPC_MMAN_H
108cf108c5SZhang Yi 
118cf108c5SZhang Yi #include <asm-generic/mman-common.h>
128cf108c5SZhang Yi 
138cf108c5SZhang Yi 
148cf108c5SZhang Yi #define PROT_SAO	0x10		/* Strong Access Ordering */
158cf108c5SZhang Yi 
168cf108c5SZhang Yi #define MAP_RENAME      MAP_ANONYMOUS   /* In SunOS terminology */
178cf108c5SZhang Yi #define MAP_NORESERVE   0x40            /* don't reserve swap pages */
188cf108c5SZhang Yi #define MAP_LOCKED	0x80
198cf108c5SZhang Yi 
208cf108c5SZhang Yi #define MAP_GROWSDOWN	0x0100		/* stack-like segment */
218cf108c5SZhang Yi #define MAP_DENYWRITE	0x0800		/* ETXTBSY */
228cf108c5SZhang Yi #define MAP_EXECUTABLE	0x1000		/* mark it as an executable */
238cf108c5SZhang Yi 
24*f363d039SEric Auger 
258cf108c5SZhang Yi #define MCL_CURRENT     0x2000          /* lock all currently mapped pages */
268cf108c5SZhang Yi #define MCL_FUTURE      0x4000          /* lock all additions to address space */
278cf108c5SZhang Yi #define MCL_ONFAULT	0x8000		/* lock all pages that are faulted in */
288cf108c5SZhang Yi 
298cf108c5SZhang Yi /* Override any generic PKEY permission defines */
308cf108c5SZhang Yi #define PKEY_DISABLE_EXECUTE   0x4
318cf108c5SZhang Yi #undef PKEY_ACCESS_MASK
328cf108c5SZhang Yi #define PKEY_ACCESS_MASK       (PKEY_DISABLE_ACCESS |\
338cf108c5SZhang Yi 				PKEY_DISABLE_WRITE  |\
348cf108c5SZhang Yi 				PKEY_DISABLE_EXECUTE)
358cf108c5SZhang Yi #endif /* _ASM_POWERPC_MMAN_H */
36