Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #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 | |
Michael S. Tsirkin | 5f6164f | 2006-02-15 15:17:39 -0800 | [diff] [blame] | 11 | #include <asm-generic/mman.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | |
| 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 */ |
| 21 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | #define MCL_CURRENT 1 /* lock all current mappings */ |
| 23 | #define MCL_FUTURE 2 /* lock all future mappings */ |
| 24 | |
Kirill Korotaev | 3a45975 | 2006-09-07 14:17:04 +0400 | [diff] [blame] | 25 | #ifdef __KERNEL__ |
| 26 | #ifndef __ASSEMBLY__ |
| 27 | #define arch_mmap_check ia64_mmap_check |
| 28 | int ia64_mmap_check(unsigned long addr, unsigned long len, |
| 29 | unsigned long flags); |
| 30 | #endif |
| 31 | #endif |
| 32 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | #endif /* _ASM_IA64_MMAN_H */ |