diff options
Diffstat (limited to 'arch/mips/include/asm/processor.h')
-rw-r--r-- | arch/mips/include/asm/processor.h | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/arch/mips/include/asm/processor.h b/arch/mips/include/asm/processor.h index 0d629bb93cbe..ead6928fa6b8 100644 --- a/arch/mips/include/asm/processor.h +++ b/arch/mips/include/asm/processor.h | |||
@@ -50,13 +50,10 @@ extern unsigned int vced_count, vcei_count; | |||
50 | * so don't change it unless you know what you are doing. | 50 | * so don't change it unless you know what you are doing. |
51 | */ | 51 | */ |
52 | #define TASK_SIZE 0x7fff8000UL | 52 | #define TASK_SIZE 0x7fff8000UL |
53 | #define STACK_TOP ((TASK_SIZE & PAGE_MASK) - SPECIAL_PAGES_SIZE) | ||
54 | 53 | ||
55 | /* | 54 | #ifdef __KERNEL__ |
56 | * This decides where the kernel will search for a free chunk of vm | 55 | #define STACK_TOP_MAX TASK_SIZE |
57 | * space during mmap's. | 56 | #endif |
58 | */ | ||
59 | #define TASK_UNMAPPED_BASE ((TASK_SIZE / 3) & ~(PAGE_SIZE)) | ||
60 | 57 | ||
61 | #define TASK_IS_32BIT_ADDR 1 | 58 | #define TASK_IS_32BIT_ADDR 1 |
62 | 59 | ||
@@ -71,28 +68,29 @@ extern unsigned int vced_count, vcei_count; | |||
71 | * 8192EB ... | 68 | * 8192EB ... |
72 | */ | 69 | */ |
73 | #define TASK_SIZE32 0x7fff8000UL | 70 | #define TASK_SIZE32 0x7fff8000UL |
74 | #define TASK_SIZE 0x10000000000UL | 71 | #define TASK_SIZE64 0x10000000000UL |
75 | #define STACK_TOP \ | 72 | #define TASK_SIZE (test_thread_flag(TIF_32BIT_ADDR) ? TASK_SIZE32 : TASK_SIZE64) |
76 | (((test_thread_flag(TIF_32BIT_ADDR) ? \ | 73 | |
77 | TASK_SIZE32 : TASK_SIZE) & PAGE_MASK) - SPECIAL_PAGES_SIZE) | 74 | #ifdef __KERNEL__ |
75 | #define STACK_TOP_MAX TASK_SIZE64 | ||
76 | #endif | ||
77 | |||
78 | 78 | ||
79 | /* | ||
80 | * This decides where the kernel will search for a free chunk of vm | ||
81 | * space during mmap's. | ||
82 | */ | ||
83 | #define TASK_UNMAPPED_BASE \ | ||
84 | (test_thread_flag(TIF_32BIT_ADDR) ? \ | ||
85 | PAGE_ALIGN(TASK_SIZE32 / 3) : PAGE_ALIGN(TASK_SIZE / 3)) | ||
86 | #define TASK_SIZE_OF(tsk) \ | 79 | #define TASK_SIZE_OF(tsk) \ |
87 | (test_tsk_thread_flag(tsk, TIF_32BIT_ADDR) ? TASK_SIZE32 : TASK_SIZE) | 80 | (test_tsk_thread_flag(tsk, TIF_32BIT_ADDR) ? TASK_SIZE32 : TASK_SIZE64) |
88 | 81 | ||
89 | #define TASK_IS_32BIT_ADDR test_thread_flag(TIF_32BIT_ADDR) | 82 | #define TASK_IS_32BIT_ADDR test_thread_flag(TIF_32BIT_ADDR) |
90 | 83 | ||
91 | #endif | 84 | #endif |
92 | 85 | ||
93 | #ifdef __KERNEL__ | 86 | #define STACK_TOP ((TASK_SIZE & PAGE_MASK) - SPECIAL_PAGES_SIZE) |
94 | #define STACK_TOP_MAX TASK_SIZE | 87 | |
95 | #endif | 88 | /* |
89 | * This decides where the kernel will search for a free chunk of vm | ||
90 | * space during mmap's. | ||
91 | */ | ||
92 | #define TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE / 3) | ||
93 | |||
96 | 94 | ||
97 | #define NUM_FPU_REGS 32 | 95 | #define NUM_FPU_REGS 32 |
98 | 96 | ||