summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/traps.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1998-09-19 19:15:08 +0000
committerRalf Baechle <ralf@linux-mips.org>1998-09-19 19:15:08 +0000
commit03ba4131783cc9e872f8bb26a03f15bc11f27564 (patch)
tree88db8dba75ae06ba3bad08e42c5e52efc162535c /arch/arm/kernel/traps.c
parent257730f99381dd26e10b832fce4c94cae7ac1176 (diff)
- Merge with Linux 2.1.121.
- Bugfixes.
Diffstat (limited to 'arch/arm/kernel/traps.c')
-rw-r--r--arch/arm/kernel/traps.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/arch/arm/kernel/traps.c b/arch/arm/kernel/traps.c
index 2170dfd58..6da813aa2 100644
--- a/arch/arm/kernel/traps.c
+++ b/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 bad_mode(struct pt_regs *regs, int reason, int proc_mode)
*/
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 (&current->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)