diff options
Diffstat (limited to 'arch/mips/include/asm/processor.h')
-rw-r--r-- | arch/mips/include/asm/processor.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/arch/mips/include/asm/processor.h b/arch/mips/include/asm/processor.h index 5d33b727acf5..0d629bb93cbe 100644 --- a/arch/mips/include/asm/processor.h +++ b/arch/mips/include/asm/processor.h | |||
@@ -34,6 +34,11 @@ extern void (*cpu_wait)(void); | |||
34 | extern unsigned int vced_count, vcei_count; | 34 | extern unsigned int vced_count, vcei_count; |
35 | 35 | ||
36 | /* | 36 | /* |
37 | * MIPS does have an arch_pick_mmap_layout() | ||
38 | */ | ||
39 | #define HAVE_ARCH_PICK_MMAP_LAYOUT 1 | ||
40 | |||
41 | /* | ||
37 | * A special page (the vdso) is mapped into all processes at the very | 42 | * A special page (the vdso) is mapped into all processes at the very |
38 | * top of the virtual memory space. | 43 | * top of the virtual memory space. |
39 | */ | 44 | */ |
@@ -52,6 +57,9 @@ extern unsigned int vced_count, vcei_count; | |||
52 | * space during mmap's. | 57 | * space during mmap's. |
53 | */ | 58 | */ |
54 | #define TASK_UNMAPPED_BASE ((TASK_SIZE / 3) & ~(PAGE_SIZE)) | 59 | #define TASK_UNMAPPED_BASE ((TASK_SIZE / 3) & ~(PAGE_SIZE)) |
60 | |||
61 | #define TASK_IS_32BIT_ADDR 1 | ||
62 | |||
55 | #endif | 63 | #endif |
56 | 64 | ||
57 | #ifdef CONFIG_64BIT | 65 | #ifdef CONFIG_64BIT |
@@ -77,6 +85,9 @@ extern unsigned int vced_count, vcei_count; | |||
77 | PAGE_ALIGN(TASK_SIZE32 / 3) : PAGE_ALIGN(TASK_SIZE / 3)) | 85 | PAGE_ALIGN(TASK_SIZE32 / 3) : PAGE_ALIGN(TASK_SIZE / 3)) |
78 | #define TASK_SIZE_OF(tsk) \ | 86 | #define TASK_SIZE_OF(tsk) \ |
79 | (test_tsk_thread_flag(tsk, TIF_32BIT_ADDR) ? TASK_SIZE32 : TASK_SIZE) | 87 | (test_tsk_thread_flag(tsk, TIF_32BIT_ADDR) ? TASK_SIZE32 : TASK_SIZE) |
88 | |||
89 | #define TASK_IS_32BIT_ADDR test_thread_flag(TIF_32BIT_ADDR) | ||
90 | |||
80 | #endif | 91 | #endif |
81 | 92 | ||
82 | #ifdef __KERNEL__ | 93 | #ifdef __KERNEL__ |
@@ -218,7 +229,6 @@ struct thread_struct { | |||
218 | unsigned long cp0_badvaddr; /* Last user fault */ | 229 | unsigned long cp0_badvaddr; /* Last user fault */ |
219 | unsigned long cp0_baduaddr; /* Last kernel fault accessing USEG */ | 230 | unsigned long cp0_baduaddr; /* Last kernel fault accessing USEG */ |
220 | unsigned long error_code; | 231 | unsigned long error_code; |
221 | unsigned long trap_no; | ||
222 | unsigned long irix_trampoline; /* Wheee... */ | 232 | unsigned long irix_trampoline; /* Wheee... */ |
223 | unsigned long irix_oldctx; | 233 | unsigned long irix_oldctx; |
224 | #ifdef CONFIG_CPU_CAVIUM_OCTEON | 234 | #ifdef CONFIG_CPU_CAVIUM_OCTEON |
@@ -290,7 +300,6 @@ struct thread_struct { | |||
290 | .cp0_badvaddr = 0, \ | 300 | .cp0_badvaddr = 0, \ |
291 | .cp0_baduaddr = 0, \ | 301 | .cp0_baduaddr = 0, \ |
292 | .error_code = 0, \ | 302 | .error_code = 0, \ |
293 | .trap_no = 0, \ | ||
294 | .irix_trampoline = 0, \ | 303 | .irix_trampoline = 0, \ |
295 | .irix_oldctx = 0, \ | 304 | .irix_oldctx = 0, \ |
296 | /* \ | 305 | /* \ |