diff options
Diffstat (limited to 'arch/mips/kernel/process.c')
-rw-r--r-- | arch/mips/kernel/process.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/mips/kernel/process.c b/arch/mips/kernel/process.c index ddc76103e78c..6ae540e133b2 100644 --- a/arch/mips/kernel/process.c +++ b/arch/mips/kernel/process.c | |||
@@ -60,15 +60,11 @@ void start_thread(struct pt_regs * regs, unsigned long pc, unsigned long sp) | |||
60 | 60 | ||
61 | /* New thread loses kernel privileges. */ | 61 | /* New thread loses kernel privileges. */ |
62 | status = regs->cp0_status & ~(ST0_CU0|ST0_CU1|ST0_FR|KU_MASK); | 62 | status = regs->cp0_status & ~(ST0_CU0|ST0_CU1|ST0_FR|KU_MASK); |
63 | #ifdef CONFIG_64BIT | ||
64 | status |= test_thread_flag(TIF_32BIT_REGS) ? 0 : ST0_FR; | ||
65 | #endif | ||
66 | status |= KU_USER; | 63 | status |= KU_USER; |
67 | regs->cp0_status = status; | 64 | regs->cp0_status = status; |
68 | clear_used_math(); | 65 | clear_used_math(); |
69 | clear_fpu_owner(); | 66 | clear_fpu_owner(); |
70 | if (cpu_has_dsp) | 67 | init_dsp(); |
71 | __init_dsp(); | ||
72 | regs->cp0_epc = pc; | 68 | regs->cp0_epc = pc; |
73 | regs->regs[29] = sp; | 69 | regs->regs[29] = sp; |
74 | } | 70 | } |