diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2012-10-12 15:11:08 -0400 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2012-10-12 15:11:08 -0400 |
commit | d20f2f83b2374c1cee042981cb45493a3e06b6a5 (patch) | |
tree | 9b9350f65c23d0166aaa314559c37fdff0b0d62a /arch/tile/include/uapi/asm/mman.h | |
parent | ccff9b1db693062b0a9c9070f4304deb47ef215c (diff) | |
parent | df842f79f0e2aed9092a73f611f41f03630a3823 (diff) |
Merge tag 'tags/disintegrate-tile-20121009' into for-linus
UAPI Disintegration 2012-10-09
Diffstat (limited to 'arch/tile/include/uapi/asm/mman.h')
-rw-r--r-- | arch/tile/include/uapi/asm/mman.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/arch/tile/include/uapi/asm/mman.h b/arch/tile/include/uapi/asm/mman.h new file mode 100644 index 00000000000..81b8fc348d6 --- /dev/null +++ b/arch/tile/include/uapi/asm/mman.h @@ -0,0 +1,41 @@ +/* + * Copyright 2010 Tilera Corporation. All Rights Reserved. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, version 2. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or + * NON INFRINGEMENT. See the GNU General Public License for + * more details. + */ + +#ifndef _ASM_TILE_MMAN_H +#define _ASM_TILE_MMAN_H + +#include <asm-generic/mman-common.h> +#include <arch/chip.h> + +/* Standard Linux flags */ + +#define MAP_POPULATE 0x0040 /* populate (prefault) pagetables */ +#define MAP_NONBLOCK 0x0080 /* do not block on IO */ +#define MAP_GROWSDOWN 0x0100 /* stack-like segment */ +#define MAP_STACK MAP_GROWSDOWN /* provide convenience alias */ +#define MAP_LOCKED 0x0200 /* pages are locked */ +#define MAP_NORESERVE 0x0400 /* don't check for reservations */ +#define MAP_DENYWRITE 0x0800 /* ETXTBSY */ +#define MAP_EXECUTABLE 0x1000 /* mark it as an executable */ +#define MAP_HUGETLB 0x4000 /* create a huge page mapping */ + + +/* + * Flags for mlockall + */ +#define MCL_CURRENT 1 /* lock all current mappings */ +#define MCL_FUTURE 2 /* lock all future mappings */ + + +#endif /* _ASM_TILE_MMAN_H */ |