patch-2.4.20 linux-2.4.20/arch/mips/kernel/r4k_switch.S
Next file: linux-2.4.20/arch/mips/kernel/scall_o32.S
Previous file: linux-2.4.20/arch/mips/kernel/ptrace.c
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Thu Nov 28 15:53:10 2002
- Orig file:
linux-2.4.19/arch/mips/kernel/r4k_switch.S
- Orig date:
Fri Aug 2 17:39:43 2002
diff -urN linux-2.4.19/arch/mips/kernel/r4k_switch.S linux-2.4.20/arch/mips/kernel/r4k_switch.S
@@ -46,16 +46,16 @@
move $28, a1
CPU_RESTORE_NONSCRATCH($28)
addiu t0, $28, KERNEL_STACK_SIZE-32
-#ifdef CONFIG_SMP
+#ifdef CONFIG_SMP
mfc0 a3, CP0_CONTEXT
la t1, kernelsp
srl a3, 23
sll a3, 2
addu t1, a3, t1
- sw t0, (t1)
+ sw t0, (t1)
#else
sw t0, kernelsp
-#endif
+#endif
mfc0 t1, CP0_STATUS /* Do we really need this? */
li a3, 0xff00
and t1, a3
@@ -80,6 +80,7 @@
li t3, ST0_CU1
or t0, t3
mtc0 t0, CP0_STATUS
+ FPU_ENABLE_HAZARD
beqz a0, 2f # Save floating point state
nor t3, zero, t3
@@ -129,6 +130,7 @@
li t1, ST0_CU1
or t0, t1
mtc0 t0, CP0_STATUS
+ FPU_ENABLE_HAZARD
li t1, FPU_DEFAULT
ctc1 t1, fcr31
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)