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

Next file: linux/arch/i386/kernel/traps.c
Previous file: linux/arch/i386/kernel/pci-pc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.31/linux/arch/i386/kernel/process.c linux/arch/i386/kernel/process.c
@@ -462,7 +462,7 @@
 	struct pt_regs * childregs;
 
 	childregs = ((struct pt_regs *) (THREAD_SIZE + (unsigned long) p)) - 1;
-	*childregs = *regs;
+	struct_cpy(childregs, regs);
 	childregs->eax = 0;
 	childregs->esp = esp;
 
@@ -475,7 +475,7 @@
 	savesegment(gs,p->thread.gs);
 
 	unlazy_fpu(current);
-	p->thread.i387 = current->thread.i387;
+	struct_cpy(&p->thread.i387, &current->thread.i387);
 
 	return 0;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)