Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1
+1
arch/tile/include/asm/mman.h
··· 23 23 #define MAP_POPULATE 0x0040 /* populate (prefault) pagetables */ 24 24 #define MAP_NONBLOCK 0x0080 /* do not block on IO */ 25 25 #define MAP_GROWSDOWN 0x0100 /* stack-like segment */ 26 + #define MAP_STACK MAP_GROWSDOWN /* provide convenience alias */ 26 27 #define MAP_LOCKED 0x0200 /* pages are locked */ 27 28 #define MAP_NORESERVE 0x0400 /* don't check for reservations */ 28 29 #define MAP_DENYWRITE 0x0800 /* ETXTBSY */