patch-2.1.124 linux/arch/i386/kernel/ptrace.c
Next file: linux/arch/i386/kernel/signal.c
Previous file: linux/arch/i386/kernel/process.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Wed Sep 30 10:16:56 1998
- Orig file:
v2.1.123/linux/arch/i386/kernel/ptrace.c
- Orig date:
Thu Sep 17 17:53:34 1998
diff -u --recursive --new-file v2.1.123/linux/arch/i386/kernel/ptrace.c linux/arch/i386/kernel/ptrace.c
@@ -541,6 +541,10 @@
if ((unsigned long) data > _NSIG)
goto out;
child->flags &= ~PF_TRACESYS;
+ if ((child->flags & PF_DTRACE) == 0) {
+ /* Spurious delayed TF traps may occur */
+ child->flags |= PF_DTRACE;
+ }
tmp = get_stack_long(child, EFL_OFFSET) | TRAP_FLAG;
put_stack_long(child, EFL_OFFSET, tmp);
child->exit_code = data;
@@ -647,8 +651,6 @@
#endif
__copy_from_user(&child->tss.i387.hard, (void *)data,
sizeof(struct user_i387_struct));
- child->flags &= ~PF_USEDFPU;
- stts();
#ifdef CONFIG_MATH_EMULATION
} else {
restore_i387_soft(&child->tss.i387.soft,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov