diff options
author | David Howells <dhowells@redhat.com> | 2008-02-08 07:19:26 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-08 12:22:29 -0500 |
commit | 922a70d327bd4b11342c2afd08e20d35f52064c3 (patch) | |
tree | aff7e43fa600363128c15c4b9a1ceba3869aac15 /include/asm-alpha | |
parent | 3eb056764dd806bbe84eb604e45e7470feeaafd8 (diff) |
aout: move STACK_TOP[_MAX] to asm/processor.h
Move STACK_TOP[_MAX] out of asm/a.out.h and into asm/processor.h as they're
required whether or not A.OUT format is available.
Signed-off-by: David Howells <dhowells@redhat.com>
Cc: <linux-arch@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-alpha')
-rw-r--r-- | include/asm-alpha/a.out.h | 8 | ||||
-rw-r--r-- | include/asm-alpha/processor.h | 5 |
2 files changed, 6 insertions, 7 deletions
diff --git a/include/asm-alpha/a.out.h b/include/asm-alpha/a.out.h index e43cf61649a9..02ce8473870a 100644 --- a/include/asm-alpha/a.out.h +++ b/include/asm-alpha/a.out.h | |||
@@ -98,11 +98,5 @@ struct exec | |||
98 | set_personality (((BFPM->sh_bang || EX.ah.entry < 0x100000000L \ | 98 | set_personality (((BFPM->sh_bang || EX.ah.entry < 0x100000000L \ |
99 | ? ADDR_LIMIT_32BIT : 0) | PER_OSF4)) | 99 | ? ADDR_LIMIT_32BIT : 0) | PER_OSF4)) |
100 | 100 | ||
101 | #define STACK_TOP \ | 101 | #endif /* __KERNEL__ */ |
102 | (current->personality & ADDR_LIMIT_32BIT ? 0x80000000 : 0x00120000000UL) | ||
103 | |||
104 | #define STACK_TOP_MAX 0x00120000000UL | ||
105 | |||
106 | #endif | ||
107 | |||
108 | #endif /* __A_OUT_GNU_H__ */ | 102 | #endif /* __A_OUT_GNU_H__ */ |
diff --git a/include/asm-alpha/processor.h b/include/asm-alpha/processor.h index 425b7b6d28cb..94afe5859301 100644 --- a/include/asm-alpha/processor.h +++ b/include/asm-alpha/processor.h | |||
@@ -20,6 +20,11 @@ | |||
20 | */ | 20 | */ |
21 | #define TASK_SIZE (0x40000000000UL) | 21 | #define TASK_SIZE (0x40000000000UL) |
22 | 22 | ||
23 | #define STACK_TOP \ | ||
24 | (current->personality & ADDR_LIMIT_32BIT ? 0x80000000 : 0x00120000000UL) | ||
25 | |||
26 | #define STACK_TOP_MAX 0x00120000000UL | ||
27 | |||
23 | /* This decides where the kernel will search for a free chunk of vm | 28 | /* This decides where the kernel will search for a free chunk of vm |
24 | * space during mmap's. | 29 | * space during mmap's. |
25 | */ | 30 | */ |