patch-2.4.10 linux/arch/mips/kernel/process.c
Next file: linux/arch/mips/kernel/ptrace.c
Previous file: linux/arch/mips/kernel/proc.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Sun Sep 9 10:43:01 2001
- Orig file:
v2.4.9/linux/arch/mips/kernel/process.c
- Orig date:
Tue Jul 3 17:08:18 2001
diff -u --recursive --new-file v2.4.9/linux/arch/mips/kernel/process.c linux/arch/mips/kernel/process.c
@@ -83,13 +83,10 @@
childksp = (unsigned long)p + KERNEL_STACK_SIZE - 32;
if (last_task_used_math == current)
-#ifdef CONFIG_MIPS_FPU_EMULATOR
- if (mips_cpu.options & MIPS_CPU_FPU)
-#endif
- {
+ if (mips_cpu.options & MIPS_CPU_FPU) {
set_cp0_status(ST0_CU1);
save_fp(p);
- }
+ }
/* set up new TSS. */
childregs = (struct pt_regs *) childksp - 1;
*childregs = *regs;
@@ -120,8 +117,8 @@
* switching for most programs since they don't use the fpu.
*/
p->thread.cp0_status = read_32bit_cp0_register(CP0_STATUS) &
- ~(ST0_CU3|ST0_CU2|ST0_CU1|KU_MASK);
- childregs->cp0_status &= ~(ST0_CU3|ST0_CU2|ST0_CU1);
+ ~(ST0_CU2|ST0_CU1|KU_MASK);
+ childregs->cp0_status &= ~(ST0_CU2|ST0_CU1);
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)