aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/processor.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-02-20 17:32:28 -0500
committerIngo Molnar <mingo@elte.hu>2009-02-20 18:09:44 -0500
commitd951734654f76a370a89b4e531af9b765bd13541 (patch)
treefff6f0097d2ddd5b8f533f5e48a7978a5f9c5257 /arch/x86/include/asm/processor.h
parentc3731c68668325abddee8665018c74c7156a57be (diff)
x86, mm: rename TASK_SIZE64 => TASK_SIZE_MAX
Impact: cleanup Rename TASK_SIZE64 to TASK_SIZE_MAX, and provide the define on 32-bit too. (mapped to TASK_SIZE) This allows 32-bit code to make use of the (former-) TASK_SIZE64 symbol as well, in a clean way. Cc: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include/asm/processor.h')
-rw-r--r--arch/x86/include/asm/processor.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h
index 72914d0315e9..c7a98f738210 100644
--- a/arch/x86/include/asm/processor.h
+++ b/arch/x86/include/asm/processor.h
@@ -861,6 +861,7 @@ static inline void spin_lock_prefetch(const void *x)
861 * User space process size: 3GB (default). 861 * User space process size: 3GB (default).
862 */ 862 */
863#define TASK_SIZE PAGE_OFFSET 863#define TASK_SIZE PAGE_OFFSET
864#define TASK_SIZE_MAX TASK_SIZE
864#define STACK_TOP TASK_SIZE 865#define STACK_TOP TASK_SIZE
865#define STACK_TOP_MAX STACK_TOP 866#define STACK_TOP_MAX STACK_TOP
866 867
@@ -920,7 +921,7 @@ extern unsigned long thread_saved_pc(struct task_struct *tsk);
920/* 921/*
921 * User space process size. 47bits minus one guard page. 922 * User space process size. 47bits minus one guard page.
922 */ 923 */
923#define TASK_SIZE64 ((1UL << 47) - PAGE_SIZE) 924#define TASK_SIZE_MAX ((1UL << 47) - PAGE_SIZE)
924 925
925/* This decides where the kernel will search for a free chunk of vm 926/* This decides where the kernel will search for a free chunk of vm
926 * space during mmap's. 927 * space during mmap's.
@@ -929,12 +930,12 @@ extern unsigned long thread_saved_pc(struct task_struct *tsk);
929 0xc0000000 : 0xFFFFe000) 930 0xc0000000 : 0xFFFFe000)
930 931
931#define TASK_SIZE (test_thread_flag(TIF_IA32) ? \ 932#define TASK_SIZE (test_thread_flag(TIF_IA32) ? \
932 IA32_PAGE_OFFSET : TASK_SIZE64) 933 IA32_PAGE_OFFSET : TASK_SIZE_MAX)
933#define TASK_SIZE_OF(child) ((test_tsk_thread_flag(child, TIF_IA32)) ? \ 934#define TASK_SIZE_OF(child) ((test_tsk_thread_flag(child, TIF_IA32)) ? \
934 IA32_PAGE_OFFSET : TASK_SIZE64) 935 IA32_PAGE_OFFSET : TASK_SIZE_MAX)
935 936
936#define STACK_TOP TASK_SIZE 937#define STACK_TOP TASK_SIZE
937#define STACK_TOP_MAX TASK_SIZE64 938#define STACK_TOP_MAX TASK_SIZE_MAX
938 939
939#define INIT_THREAD { \ 940#define INIT_THREAD { \
940 .sp0 = (unsigned long)&init_stack + sizeof(init_stack) \ 941 .sp0 = (unsigned long)&init_stack + sizeof(init_stack) \