diff options
| author | Andrew Morton <akpm@digeo.com> | 2003-05-15 00:24:53 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-05-15 00:24:53 -0700 |
| commit | 7a66fddd44002b3983c82d6eaa1c187c787c9b03 (patch) | |
| tree | 775a67c077c243e7e1bc411ad5d8b1dd79435fae /include/linux | |
| parent | 77b3055a2a25b7ba9f5718651e7e89e5952d4912 (diff) | |
[PATCH] Allow architecture to overwrite stack flags
This is a bit neater.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mm.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index 45d2caa856ed..46b7f07a0069 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -111,10 +111,14 @@ struct vm_area_struct { #define VM_ACCOUNT 0x00100000 /* Is a VM accounted object */ #define VM_HUGETLB 0x00400000 /* Huge TLB Page VM */ +#ifndef VM_STACK_DEFAULT_FLAGS /* arch can override this */ +#define VM_STACK_DEFAULT_FLAGS VM_DATA_DEFAULT_FLAGS +#endif + #ifdef CONFIG_STACK_GROWSUP -#define VM_STACK_FLAGS (VM_GROWSUP | VM_DATA_DEFAULT_FLAGS | VM_ACCOUNT) +#define VM_STACK_FLAGS (VM_GROWSUP | VM_STACK_DEFAULT_FLAGS | VM_ACCOUNT) #else -#define VM_STACK_FLAGS (VM_GROWSDOWN | VM_DATA_DEFAULT_FLAGS | VM_ACCOUNT) +#define VM_STACK_FLAGS (VM_GROWSDOWN | VM_STACK_DEFAULT_FLAGS | VM_ACCOUNT) #endif #define VM_READHINTMASK (VM_SEQ_READ | VM_RAND_READ) |
