mm: add MAP_HUGETLB for mmaping pseudo-anonymous huge page regions
[linux-block.git] / arch / s390 / include / asm / mman.h
CommitLineData
1da177e4
LT
1/*
2 * include/asm-s390/mman.h
3 *
4 * S390 version
5 *
6 * Derived from "include/asm-i386/mman.h"
7 */
8
9#ifndef __S390_MMAN_H__
10#define __S390_MMAN_H__
11
63b852a6 12#include <asm-generic/mman-common.h>
1da177e4
LT
13
14#define MAP_GROWSDOWN 0x0100 /* stack-like segment */
15#define MAP_DENYWRITE 0x0800 /* ETXTBSY */
16#define MAP_EXECUTABLE 0x1000 /* mark it as an executable */
17#define MAP_LOCKED 0x2000 /* pages are locked */
18#define MAP_NORESERVE 0x4000 /* don't check for reservations */
19#define MAP_POPULATE 0x8000 /* populate (prefault) pagetables */
20#define MAP_NONBLOCK 0x10000 /* do not block on IO */
90f72aa5
AB
21#define MAP_STACK 0x20000 /* give out an address that is best suited for process/thread stacks */
22#define MAP_HUGETLB 0x40000 /* create a huge page mapping */
1da177e4 23
1da177e4
LT
24#define MCL_CURRENT 1 /* lock all current mappings */
25#define MCL_FUTURE 2 /* lock all future mappings */
26
0fb1d9bc
MS
27#if defined(__KERNEL__) && !defined(__ASSEMBLY__) && defined(CONFIG_64BIT)
28int s390_mmap_check(unsigned long addr, unsigned long len);
29#define arch_mmap_check(addr,len,flags) s390_mmap_check(addr,len)
30#endif
31
1da177e4 32#endif /* __S390_MMAN_H__ */