diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-11-10 06:27:03 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-01-27 23:18:44 -0500 |
commit | 256b22ca66987c537064dc25b0b267966189b5ba (patch) | |
tree | 482f095562a3e1614b67de5352f09d4feea673f1 /arch/sh/kernel/ptrace_64.c | |
parent | 27a511c6f37c05c5cf8fae9fe513f60d87af9158 (diff) |
sh: Have SH-5 provide an {en,dis}able_fpu() impl.
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.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/sh/kernel/ptrace_64.c b/arch/sh/kernel/ptrace_64.c index 8a2d339cf760..14e7d5e5679a 100644 --- a/arch/sh/kernel/ptrace_64.c +++ b/arch/sh/kernel/ptrace_64.c | |||
@@ -74,9 +74,9 @@ get_fpu_long(struct task_struct *task, unsigned long addr) | |||
74 | } | 74 | } |
75 | 75 | ||
76 | if (last_task_used_math == task) { | 76 | if (last_task_used_math == task) { |
77 | grab_fpu(); | 77 | enable_fpu(); |
78 | fpsave(&task->thread.fpu.hard); | 78 | fpsave(&task->thread.fpu.hard); |
79 | release_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; |
82 | } | 82 | } |
@@ -110,9 +110,9 @@ put_fpu_long(struct task_struct *task, unsigned long addr, unsigned long data) | |||
110 | fpinit(&task->thread.fpu.hard); | 110 | fpinit(&task->thread.fpu.hard); |
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 | grab_fpu(); | 113 | enable_fpu(); |
114 | fpsave(&task->thread.fpu.hard); | 114 | fpsave(&task->thread.fpu.hard); |
115 | release_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; |
118 | } | 118 | } |