patch-1.3.99 linux/arch/i386/kernel/traps.c
Next file: linux/arch/i386/math-emu/errors.c
Previous file: linux/arch/i386/kernel/time.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Mon May 6 16:41:22 1996
- Orig file:
v1.3.98/linux/arch/i386/kernel/traps.c
- Orig date:
Sat Apr 27 15:19:44 1996
diff -u --recursive --new-file v1.3.98/linux/arch/i386/kernel/traps.c linux/arch/i386/kernel/traps.c
@@ -255,18 +255,11 @@
*/
__asm__ __volatile__("fnsave %0":"=m" (task->tss.i387.hard));
task->flags&=~PF_USEDFPU;
+ stts();
force_sig(SIGFPE, task);
task->tss.trap_no = 16;
task->tss.error_code = 0;
-
- /*
- * Give the process a clean slate next time they use
- * the FPU (and if they haven't accepted the SIGFPE before
- * that, it's their problem..)
- */
- stts();
- task->used_math = 0;
}
asmlinkage void do_coprocessor_error(struct pt_regs * regs, long error_code)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this