diff options
| author | Matthew Wilcox <willy@debian.org> | 2002-11-07 00:56:27 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@penguin.transmeta.com> | 2002-11-07 00:56:27 -0800 |
| commit | 8aa1cb75c8799520a0734df53ea6940464b0add3 (patch) | |
| tree | 6ad07e115077c2afcf4cb9b0f342d50c9aae14d6 /include | |
| parent | 4c312efdd5028c684bf978ff593945a76b934758 (diff) | |
[PATCH] CONFIG_STACK_GROWSUP
Change ARCH_STACK_GROWSUP to CONFIG_STACK_GROWSUP as requested.
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-parisc/pgtable.h | 2 | ||||
| -rw-r--r-- | include/linux/mm.h | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/include/asm-parisc/pgtable.h b/include/asm-parisc/pgtable.h index 97a631e99110..acdd886998fe 100644 --- a/include/asm-parisc/pgtable.h +++ b/include/asm-parisc/pgtable.h @@ -13,8 +13,6 @@ #include <asm/cache.h> #include <asm/bitops.h> -#define ARCH_STACK_GROWSUP - /* * kern_addr_valid(ADDR) tests if ADDR is pointing to valid kernel * memory. For the return value to be meaningful, ADDR must be >= diff --git a/include/linux/mm.h b/include/linux/mm.h index bef259292073..d91bd3e8ce14 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -106,7 +106,11 @@ struct vm_area_struct { #define VM_ACCOUNT 0x00100000 /* Is a VM accounted object */ #define VM_HUGETLB 0x00400000 /* Huge TLB Page VM */ -#define VM_STACK_FLAGS (0x00000100 | VM_DATA_DEFAULT_FLAGS | VM_ACCOUNT) +#ifdef CONFIG_STACK_GROWSUP +#define VM_STACK_FLAGS (VM_GROWSUP | VM_DATA_DEFAULT_FLAGS | VM_ACCOUNT) +#else +#define VM_STACK_FLAGS (VM_GROWSDOWN | VM_DATA_DEFAULT_FLAGS | VM_ACCOUNT) +#endif #define VM_READHINTMASK (VM_SEQ_READ | VM_RAND_READ) #define VM_ClearReadHint(v) (v)->vm_flags &= ~VM_READHINTMASK |
