Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
0002 /*
0003  * This program is free software; you can redistribute it and/or
0004  * modify it under the terms of the GNU General Public License
0005  * as published by the Free Software Foundation; either version
0006  * 2 of the License, or (at your option) any later version.
0007  */
0008 #ifndef _UAPI_ASM_POWERPC_MMAN_H
0009 #define _UAPI_ASM_POWERPC_MMAN_H
0010 
0011 #include <asm-generic/mman-common.h>
0012 
0013 
0014 #define PROT_SAO    0x10        /* Strong Access Ordering */
0015 
0016 #define MAP_RENAME      MAP_ANONYMOUS   /* In SunOS terminology */
0017 #define MAP_NORESERVE   0x40            /* don't reserve swap pages */
0018 #define MAP_LOCKED  0x80
0019 
0020 #define MAP_GROWSDOWN   0x0100      /* stack-like segment */
0021 #define MAP_DENYWRITE   0x0800      /* ETXTBSY */
0022 #define MAP_EXECUTABLE  0x1000      /* mark it as an executable */
0023 
0024 
0025 #define MCL_CURRENT     0x2000          /* lock all currently mapped pages */
0026 #define MCL_FUTURE      0x4000          /* lock all additions to address space */
0027 #define MCL_ONFAULT 0x8000      /* lock all pages that are faulted in */
0028 
0029 /* Override any generic PKEY permission defines */
0030 #define PKEY_DISABLE_EXECUTE   0x4
0031 #undef PKEY_ACCESS_MASK
0032 #define PKEY_ACCESS_MASK       (PKEY_DISABLE_ACCESS |\
0033                 PKEY_DISABLE_WRITE  |\
0034                 PKEY_DISABLE_EXECUTE)
0035 #endif /* _UAPI_ASM_POWERPC_MMAN_H */