summaryrefslogtreecommitdiff
path: root/arch/tile
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2010-10-14 15:09:02 -0400
committerChris Metcalf <cmetcalf@tilera.com>2010-10-14 15:09:02 -0400
commitbbacff94d0c38163ef01361de006797c92e69e58 (patch)
tree3c730c114a450c7cf97cd7841f231eb5f8f1e4da /arch/tile
parent6b945df74233386aab526cddd3593ed4b854f574 (diff)
downloadlwn-bbacff94d0c38163ef01361de006797c92e69e58.tar.gz
lwn-bbacff94d0c38163ef01361de006797c92e69e58.zip
arch/tile: provide a definition of MAP_STACK
It's convenient for userspace (in particular, glibc) to find a definition of MAP_STACK. We use MAP_GROWSDOWN as an alias since that's appropriate for the main stack, and since our current allocation of mmap flags bits is running a bit short otherwise. Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile')
-rw-r--r--arch/tile/include/asm/mman.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/tile/include/asm/mman.h b/arch/tile/include/asm/mman.h
index 4c6811e3e8dc..81b8fc348d63 100644
--- a/arch/tile/include/asm/mman.h
+++ b/arch/tile/include/asm/mman.h
@@ -23,6 +23,7 @@
#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 */