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:
@@ -600,7 +600,7 @@ static int misaligned_fpu_load(struct pt_regs *regs,
|
||||
indexed by register number. */
|
||||
if (last_task_used_math == current) {
|
||||
enable_fpu();
|
||||
save_fpu(current, regs);
|
||||
save_fpu(current);
|
||||
disable_fpu();
|
||||
last_task_used_math = NULL;
|
||||
regs->sr |= SR_FD;
|
||||
@@ -673,7 +673,7 @@ static int misaligned_fpu_store(struct pt_regs *regs,
|
||||
indexed by register number. */
|
||||
if (last_task_used_math == current) {
|
||||
enable_fpu();
|
||||
save_fpu(current, regs);
|
||||
save_fpu(current);
|
||||
disable_fpu();
|
||||
last_task_used_math = NULL;
|
||||
regs->sr |= SR_FD;
|
||||
|
Reference in New Issue
Block a user