aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/ptrace_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/ptrace_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/ptrace_64.c')
-rw-r--r--arch/sh/kernel/ptrace_64.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/kernel/ptrace_64.c b/arch/sh/kernel/ptrace_64.c
index 51bb546365cb..e9cc6ebd2cea 100644
--- a/arch/sh/kernel/ptrace_64.c
+++ b/arch/sh/kernel/ptrace_64.c
@@ -75,7 +75,7 @@ get_fpu_long(struct task_struct *task, unsigned long addr)
75 75
76 if (last_task_used_math == task) { 76 if (last_task_used_math == task) {
77 enable_fpu(); 77 enable_fpu();
78 fpsave(&task->thread.fpu.hard); 78 save_fpu(task, regs);
79 disable_fpu(); 79 disable_fpu();
80 last_task_used_math = 0; 80 last_task_used_math = 0;
81 regs->sr |= SR_FD; 81 regs->sr |= SR_FD;
@@ -111,7 +111,7 @@ put_fpu_long(struct task_struct *task, unsigned long addr, unsigned long data)
111 set_stopped_child_used_math(task); 111 set_stopped_child_used_math(task);
112 } else if (last_task_used_math == task) { 112 } else if (last_task_used_math == task) {
113 enable_fpu(); 113 enable_fpu();
114 fpsave(&task->thread.fpu.hard); 114 save_fpu(task, regs);
115 disable_fpu(); 115 disable_fpu();
116 last_task_used_math = 0; 116 last_task_used_math = 0;
117 regs->sr |= SR_FD; 117 regs->sr |= SR_FD;