patch-2.3.11 linux/arch/i386/kernel/signal.c

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

diff -u --recursive --new-file v2.3.10/linux/arch/i386/kernel/signal.c linux/arch/i386/kernel/signal.c
@@ -155,7 +155,7 @@
 {
 	struct task_struct *tsk = current;
 	clear_fpu(tsk);
-	return __copy_from_user(&tsk->tss.i387.hard, buf, sizeof(*buf));
+	return __copy_from_user(&tsk->thread.i387.hard, buf, sizeof(*buf));
 }
 
 static inline int restore_i387(struct _fpstate *buf)
@@ -167,7 +167,7 @@
 	if (boot_cpu_data.hard_math)
 		err = restore_i387_hard(buf);
 	else
-		err = restore_i387_soft(&current->tss.i387.soft, buf);
+		err = restore_i387_soft(&current->thread.i387.soft, buf);
 #endif
 	current->used_math = 1;
 	return err;
@@ -308,8 +308,8 @@
 	struct task_struct *tsk = current;
 
 	unlazy_fpu(tsk);
-	tsk->tss.i387.hard.status = tsk->tss.i387.hard.swd;
-	if (__copy_to_user(buf, &tsk->tss.i387.hard, sizeof(*buf)))
+	tsk->thread.i387.hard.status = tsk->thread.i387.hard.swd;
+	if (__copy_to_user(buf, &tsk->thread.i387.hard, sizeof(*buf)))
 		return -1;
 	return 1;
 }
@@ -328,7 +328,7 @@
 	return save_i387_hard(buf);
 #else
 	return boot_cpu_data.hard_math ? save_i387_hard(buf)
-	  : save_i387_soft(&current->tss.i387.soft, buf);
+	  : save_i387_soft(&current->thread.i387.soft, buf);
 #endif
 }
 
@@ -354,8 +354,8 @@
 	err |= __put_user(regs->edx, &sc->edx);
 	err |= __put_user(regs->ecx, &sc->ecx);
 	err |= __put_user(regs->eax, &sc->eax);
-	err |= __put_user(current->tss.trap_no, &sc->trapno);
-	err |= __put_user(current->tss.error_code, &sc->err);
+	err |= __put_user(current->thread.trap_no, &sc->trapno);
+	err |= __put_user(current->thread.error_code, &sc->err);
 	err |= __put_user(regs->eip, &sc->eip);
 	err |= __put_user(regs->xcs, (unsigned int *)&sc->cs);
 	err |= __put_user(regs->eflags, &sc->eflags);
@@ -370,7 +370,7 @@
 
 	/* non-iBCS2 extensions.. */
 	err |= __put_user(mask, &sc->oldmask);
-	err |= __put_user(current->tss.cr2, &sc->cr2);
+	err |= __put_user(current->thread.cr2, &sc->cr2);
 
 	return err;
 }

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