patch-2.1.101 linux/arch/ppc/kernel/ptrace.c
Next file: linux/arch/ppc/kernel/setup.c
Previous file: linux/arch/ppc/kernel/prom.c
Back to the patch index
Back to the overall index
-  Lines: 15
-  Date:
Fri May  8 00:18:23 1998
-  Orig file: 
v2.1.100/linux/arch/ppc/kernel/ptrace.c
-  Orig date: 
Thu May  7 22:51:47 1998
diff -u --recursive --new-file v2.1.100/linux/arch/ppc/kernel/ptrace.c linux/arch/ppc/kernel/ptrace.c
@@ -430,11 +430,11 @@
 			}
 			if (addr >= PT_FPR0 && addr < PT_FPR0 + 64) {
 #ifndef __SMP__
-				if (child->tss.regs->msr & MSR_FP )
-					smp_giveup_fpu(child);
-#else	
 				if (last_task_used_math == child)
 					giveup_fpu();
+#else	
+				if (child->tss.regs->msr & MSR_FP )
+					smp_giveup_fpu(child);
 #endif				
 				((long *)child->tss.fpr)[addr - PT_FPR0] = data;
 				ret = 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov