patch-2.1.121 linux/arch/arm/kernel/traps.c
Next file: linux/arch/arm/lib/Makefile
Previous file: linux/arch/arm/kernel/time.c
Back to the patch index
Back to the overall index
- Lines: 38
- Date:
Sun Sep 6 10:44:47 1998
- Orig file:
v2.1.120/linux/arch/arm/kernel/traps.c
- Orig date:
Tue Jul 21 00:15:30 1998
diff -u --recursive --new-file v2.1.120/linux/arch/arm/kernel/traps.c linux/arch/arm/kernel/traps.c
@@ -24,9 +24,6 @@
#include <asm/atomic.h>
#include <asm/pgtable.h>
-extern struct task_struct *last_task_used_math;
-extern void fpe_save(struct fp_soft_struct *);
-extern void fpe_restore(struct fp_soft_struct *);
extern void die_if_kernel(char *str, struct pt_regs *regs, int err, int ret);
extern void c_backtrace (unsigned long fp, int pmode);
extern int ptrace_cancel_bpt (struct task_struct *);
@@ -252,26 +249,7 @@
*/
asmlinkage void math_state_restore (void)
{
- if (last_task_used_math == current)
- return;
- if (last_task_used_math)
- /*
- * Save current fp state into last_task_used_math->tss.fpe_save
- */
- fpe_save (&last_task_used_math->tss.fpstate.soft);
- last_task_used_math = current;
- if (current->used_math) {
- /*
- * Restore current fp state from current->tss.fpe_save
- */
- fpe_restore (¤t->tss.fpstate.soft);
- } else {
- /*
- * initialise fp state
- */
- fpe_restore (&init_task.tss.fpstate.soft);
- current->used_math = 1;
- }
+ current->used_math = 1;
}
asmlinkage void arm_syscall (int no, struct pt_regs *regs)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov