patch-2.1.102 linux/arch/i386/kernel/process.c

Next file: linux/arch/i386/kernel/setup.c
Previous file: linux/arch/i386/kernel/irq.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.101/linux/arch/i386/kernel/process.c linux/arch/i386/kernel/process.c
@@ -528,8 +528,18 @@
 	 */
 	p->tss.bitmap = sizeof(struct thread_struct);
 
+/*
+ * This tried to copy the FPU state, but I wonder whether we really
+ * want this at all. It is probably nicer to just have a newly started
+ * process start with a clean slate wrt the fpu.  - Linus
+ */
+#if 1
+	current->used_math = 0;
+	current->flags &= ~PF_USEDFPU;
+#else
 	if (last_task_used_math == current)
 		__asm__("clts ; fnsave %0 ; frstor %0":"=m" (p->tss.i387));
+#endif
 
 	return 0;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov