diff options
Diffstat (limited to 'arch/tile/include/asm/mman.h')
| -rw-r--r-- | arch/tile/include/asm/mman.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/arch/tile/include/asm/mman.h b/arch/tile/include/asm/mman.h new file mode 100644 index 000000000000..4c6811e3e8dc --- /dev/null +++ b/arch/tile/include/asm/mman.h | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | /* | ||
| 2 | * Copyright 2010 Tilera Corporation. All Rights Reserved. | ||
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of the GNU General Public License | ||
| 6 | * as published by the Free Software Foundation, version 2. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, but | ||
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or | ||
| 11 | * NON INFRINGEMENT. See the GNU General Public License for | ||
| 12 | * more details. | ||
| 13 | */ | ||
| 14 | |||
| 15 | #ifndef _ASM_TILE_MMAN_H | ||
| 16 | #define _ASM_TILE_MMAN_H | ||
| 17 | |||
| 18 | #include <asm-generic/mman-common.h> | ||
| 19 | #include <arch/chip.h> | ||
| 20 | |||
| 21 | /* Standard Linux flags */ | ||
| 22 | |||
| 23 | #define MAP_POPULATE 0x0040 /* populate (prefault) pagetables */ | ||
| 24 | #define MAP_NONBLOCK 0x0080 /* do not block on IO */ | ||
| 25 | #define MAP_GROWSDOWN 0x0100 /* stack-like segment */ | ||
| 26 | #define MAP_LOCKED 0x0200 /* pages are locked */ | ||
| 27 | #define MAP_NORESERVE 0x0400 /* don't check for reservations */ | ||
| 28 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ | ||
| 29 | #define MAP_EXECUTABLE 0x1000 /* mark it as an executable */ | ||
| 30 | #define MAP_HUGETLB 0x4000 /* create a huge page mapping */ | ||
| 31 | |||
| 32 | |||
| 33 | /* | ||
| 34 | * Flags for mlockall | ||
| 35 | */ | ||
| 36 | #define MCL_CURRENT 1 /* lock all current mappings */ | ||
| 37 | #define MCL_FUTURE 2 /* lock all future mappings */ | ||
| 38 | |||
| 39 | |||
| 40 | #endif /* _ASM_TILE_MMAN_H */ | ||
