diff options
Diffstat (limited to 'arch/mips/kernel/r2300_switch.S')
| -rw-r--r-- | arch/mips/kernel/r2300_switch.S | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/arch/mips/kernel/r2300_switch.S b/arch/mips/kernel/r2300_switch.S index 5087a4b72e6b..ac27ef7d4d0e 100644 --- a/arch/mips/kernel/r2300_switch.S +++ b/arch/mips/kernel/r2300_switch.S | |||
| @@ -31,18 +31,8 @@ | |||
| 31 | #define ST_OFF (_THREAD_SIZE - 32 - PT_SIZE + PT_STATUS) | 31 | #define ST_OFF (_THREAD_SIZE - 32 - PT_SIZE + PT_STATUS) |
| 32 | 32 | ||
| 33 | /* | 33 | /* |
| 34 | * FPU context is saved iff the process has used it's FPU in the current | ||
| 35 | * time slice as indicated by TIF_USEDFPU. In any case, the CU1 bit for user | ||
| 36 | * space STATUS register should be 0, so that a process *always* starts its | ||
| 37 | * userland with FPU disabled after each context switch. | ||
| 38 | * | ||
| 39 | * FPU will be enabled as soon as the process accesses FPU again, through | ||
| 40 | * do_cpu() trap. | ||
| 41 | */ | ||
| 42 | |||
| 43 | /* | ||
| 44 | * task_struct *resume(task_struct *prev, task_struct *next, | 34 | * task_struct *resume(task_struct *prev, task_struct *next, |
| 45 | * struct thread_info *next_ti, int usedfpu) | 35 | * struct thread_info *next_ti) |
| 46 | */ | 36 | */ |
| 47 | LEAF(resume) | 37 | LEAF(resume) |
| 48 | mfc0 t1, CP0_STATUS | 38 | mfc0 t1, CP0_STATUS |
| @@ -50,22 +40,6 @@ LEAF(resume) | |||
| 50 | cpu_save_nonscratch a0 | 40 | cpu_save_nonscratch a0 |
| 51 | sw ra, THREAD_REG31(a0) | 41 | sw ra, THREAD_REG31(a0) |
| 52 | 42 | ||
| 53 | beqz a3, 1f | ||
| 54 | |||
| 55 | PTR_L t3, TASK_THREAD_INFO(a0) | ||
| 56 | |||
| 57 | /* | ||
| 58 | * clear saved user stack CU1 bit | ||
| 59 | */ | ||
| 60 | lw t0, ST_OFF(t3) | ||
| 61 | li t1, ~ST0_CU1 | ||
| 62 | and t0, t0, t1 | ||
| 63 | sw t0, ST_OFF(t3) | ||
| 64 | |||
| 65 | fpu_save_single a0, t0 # clobbers t0 | ||
| 66 | |||
| 67 | 1: | ||
| 68 | |||
| 69 | #if defined(CONFIG_CC_STACKPROTECTOR) && !defined(CONFIG_SMP) | 43 | #if defined(CONFIG_CC_STACKPROTECTOR) && !defined(CONFIG_SMP) |
| 70 | PTR_LA t8, __stack_chk_guard | 44 | PTR_LA t8, __stack_chk_guard |
| 71 | LONG_L t9, TASK_STACK_CANARY(a1) | 45 | LONG_L t9, TASK_STACK_CANARY(a1) |
