sh: Bring the SH-5 FPU in line with the SH-4 FPU API.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
@@ -618,7 +618,7 @@ static int misaligned_fpu_load(struct pt_regs *regs,
|
||||
indexed by register number. */
|
||||
if (last_task_used_math == current) {
|
||||
enable_fpu();
|
||||
fpsave(¤t->thread.fpu.hard);
|
||||
save_fpu(current, regs);
|
||||
disable_fpu();
|
||||
last_task_used_math = NULL;
|
||||
regs->sr |= SR_FD;
|
||||
@@ -691,7 +691,7 @@ static int misaligned_fpu_store(struct pt_regs *regs,
|
||||
indexed by register number. */
|
||||
if (last_task_used_math == current) {
|
||||
enable_fpu();
|
||||
fpsave(¤t->thread.fpu.hard);
|
||||
save_fpu(current, regs);
|
||||
disable_fpu();
|
||||
last_task_used_math = NULL;
|
||||
regs->sr |= SR_FD;
|
||||
|
Reference in New Issue
Block a user