xref: /linux/arch/powerpc/include/uapi/asm/mman.h (revision 20c7775aecea04d8ca322039969d49dcf568e0e9)
1e2be04c7SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
2c3617f72SDavid Howells /*
3c3617f72SDavid Howells  * This program is free software; you can redistribute it and/or
4c3617f72SDavid Howells  * modify it under the terms of the GNU General Public License
5c3617f72SDavid Howells  * as published by the Free Software Foundation; either version
6c3617f72SDavid Howells  * 2 of the License, or (at your option) any later version.
7c3617f72SDavid Howells  */
8c3617f72SDavid Howells #ifndef _UAPI_ASM_POWERPC_MMAN_H
9c3617f72SDavid Howells #define _UAPI_ASM_POWERPC_MMAN_H
10c3617f72SDavid Howells 
11c3617f72SDavid Howells #include <asm-generic/mman-common.h>
12c3617f72SDavid Howells 
13c3617f72SDavid Howells 
14*12564485SShawn Anastasio #define PROT_SAO	0x10		/* Strong Access Ordering */
15c3617f72SDavid Howells 
16c3617f72SDavid Howells #define MAP_RENAME      MAP_ANONYMOUS   /* In SunOS terminology */
17c3617f72SDavid Howells #define MAP_NORESERVE   0x40            /* don't reserve swap pages */
18c3617f72SDavid Howells #define MAP_LOCKED	0x80
19c3617f72SDavid Howells 
20c3617f72SDavid Howells #define MAP_GROWSDOWN	0x0100		/* stack-like segment */
21c3617f72SDavid Howells #define MAP_DENYWRITE	0x0800		/* ETXTBSY */
22c3617f72SDavid Howells #define MAP_EXECUTABLE	0x1000		/* mark it as an executable */
23c3617f72SDavid Howells 
248aa3c927SAneesh Kumar K.V 
25c3617f72SDavid Howells #define MCL_CURRENT     0x2000          /* lock all currently mapped pages */
26c3617f72SDavid Howells #define MCL_FUTURE      0x4000          /* lock all additions to address space */
27b0f205c2SEric B Munson #define MCL_ONFAULT	0x8000		/* lock all pages that are faulted in */
28c3617f72SDavid Howells 
29dcf87295SRam Pai /* Override any generic PKEY permission defines */
30dcf87295SRam Pai #define PKEY_DISABLE_EXECUTE   0x4
31dcf87295SRam Pai #undef PKEY_ACCESS_MASK
32dcf87295SRam Pai #define PKEY_ACCESS_MASK       (PKEY_DISABLE_ACCESS |\
33dcf87295SRam Pai 				PKEY_DISABLE_WRITE  |\
34dcf87295SRam Pai 				PKEY_DISABLE_EXECUTE)
35c3617f72SDavid Howells #endif /* _UAPI_ASM_POWERPC_MMAN_H */
36