sh: Fix up FPU build for SH5
After the recent FPU optimisation commit the signature of save_fpu() changed. "regs" wasn't used in the implementation of save_fpu() anyway. Signed-off-by: Matt Fleming <matt@console-pimps.org> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
@@ -82,7 +82,7 @@ get_fpu_long(struct task_struct *task, unsigned long addr)
|
||||
|
||||
if (last_task_used_math == task) {
|
||||
enable_fpu();
|
||||
save_fpu(task, regs);
|
||||
save_fpu(task);
|
||||
disable_fpu();
|
||||
last_task_used_math = 0;
|
||||
regs->sr |= SR_FD;
|
||||
@@ -118,7 +118,7 @@ put_fpu_long(struct task_struct *task, unsigned long addr, unsigned long data)
|
||||
set_stopped_child_used_math(task);
|
||||
} else if (last_task_used_math == task) {
|
||||
enable_fpu();
|
||||
save_fpu(task, regs);
|
||||
save_fpu(task);
|
||||
disable_fpu();
|
||||
last_task_used_math = 0;
|
||||
regs->sr |= SR_FD;
|
||||
|
Reference in New Issue
Block a user