blob: cf55884e7f39ddef103c7f5e41019ca7376a031d [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _ASM_IA64_MMAN_H
2#define _ASM_IA64_MMAN_H
3
4/*
5 * Based on <asm-i386/mman.h>.
6 *
7 * Modified 1998-2000, 2002
8 * David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co
9 */
10
Arnd Bergmann63b852a2009-05-13 22:56:24 +000011#include <asm-generic/mman-common.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070012
13#define MAP_GROWSDOWN 0x00100 /* stack-like segment */
14#define MAP_GROWSUP 0x00200 /* register stack-like segment */
15#define MAP_DENYWRITE 0x00800 /* ETXTBSY */
16#define MAP_EXECUTABLE 0x01000 /* mark it as an executable */
17#define MAP_LOCKED 0x02000 /* pages are locked */
18#define MAP_NORESERVE 0x04000 /* don't check for reservations */
19#define MAP_POPULATE 0x08000 /* populate (prefault) pagetables */
20#define MAP_NONBLOCK 0x10000 /* do not block on IO */
Arnd Bergmann90f72aa2009-09-21 17:03:45 -070021#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 */
Linus Torvalds1da177e2005-04-16 15:20:36 -070023
Linus Torvalds1da177e2005-04-16 15:20:36 -070024#define MCL_CURRENT 1 /* lock all current mappings */
25#define MCL_FUTURE 2 /* lock all future mappings */
26
Kirill Korotaev3a459752006-09-07 14:17:04 +040027#ifdef __KERNEL__
28#ifndef __ASSEMBLY__
29#define arch_mmap_check ia64_mmap_check
30int ia64_mmap_check(unsigned long addr, unsigned long len,
31 unsigned long flags);
32#endif
33#endif
34
Linus Torvalds1da177e2005-04-16 15:20:36 -070035#endif /* _ASM_IA64_MMAN_H */