aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/process_64.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2007-11-22 03:30:50 -0500
committerPaul Mundt <lethal@linux-sh.org>2008-01-27 23:18:55 -0500
commit332fd57b92d26e2ac6112340b98e92bb76117a41 (patch)
treefbbc00a900299ad91f46a74b8f2d42efaf4809af /arch/sh/kernel/process_64.c
parentb6d7b666097e79a8908e3c43fd55fd291a95e133 (diff)
sh: Bring the SH-5 FPU in line with the SH-4 FPU API.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/process_64.c')
-rw-r--r--arch/sh/kernel/process_64.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/kernel/process_64.c b/arch/sh/kernel/process_64.c
index 2dd97eecb44c..973dd1a3d292 100644
--- a/arch/sh/kernel/process_64.c
+++ b/arch/sh/kernel/process_64.c
@@ -480,7 +480,7 @@ int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpu)
480 if (fpvalid) { 480 if (fpvalid) {
481 if (current == last_task_used_math) { 481 if (current == last_task_used_math) {
482 enable_fpu(); 482 enable_fpu();
483 fpsave(&tsk->thread.fpu.hard); 483 save_fpu(tsk, regs);
484 disable_fpu(); 484 disable_fpu();
485 last_task_used_math = 0; 485 last_task_used_math = 0;
486 regs->sr |= SR_FD; 486 regs->sr |= SR_FD;
@@ -507,7 +507,7 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long usp,
507#ifdef CONFIG_SH_FPU 507#ifdef CONFIG_SH_FPU
508 if(last_task_used_math == current) { 508 if(last_task_used_math == current) {
509 enable_fpu(); 509 enable_fpu();
510 fpsave(&current->thread.fpu.hard); 510 save_fpu(current, regs);
511 disable_fpu(); 511 disable_fpu();
512 last_task_used_math = NULL; 512 last_task_used_math = NULL;
513 regs->sr |= SR_FD; 513 regs->sr |= SR_FD;