diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-11-22 03:30:50 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-01-27 23:18:55 -0500 |
commit | 332fd57b92d26e2ac6112340b98e92bb76117a41 (patch) | |
tree | fbbc00a900299ad91f46a74b8f2d42efaf4809af /arch/sh/kernel/traps_64.c | |
parent | b6d7b666097e79a8908e3c43fd55fd291a95e133 (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/traps_64.c')
-rw-r--r-- | arch/sh/kernel/traps_64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/kernel/traps_64.c b/arch/sh/kernel/traps_64.c index 0f4ea3ac3e0b..b8020f26b635 100644 --- a/arch/sh/kernel/traps_64.c +++ b/arch/sh/kernel/traps_64.c | |||
@@ -618,7 +618,7 @@ static int misaligned_fpu_load(struct pt_regs *regs, | |||
618 | indexed by register number. */ | 618 | indexed by register number. */ |
619 | if (last_task_used_math == current) { | 619 | if (last_task_used_math == current) { |
620 | enable_fpu(); | 620 | enable_fpu(); |
621 | fpsave(¤t->thread.fpu.hard); | 621 | save_fpu(current, regs); |
622 | disable_fpu(); | 622 | disable_fpu(); |
623 | last_task_used_math = NULL; | 623 | last_task_used_math = NULL; |
624 | regs->sr |= SR_FD; | 624 | regs->sr |= SR_FD; |
@@ -691,7 +691,7 @@ static int misaligned_fpu_store(struct pt_regs *regs, | |||
691 | indexed by register number. */ | 691 | indexed by register number. */ |
692 | if (last_task_used_math == current) { | 692 | if (last_task_used_math == current) { |
693 | enable_fpu(); | 693 | enable_fpu(); |
694 | fpsave(¤t->thread.fpu.hard); | 694 | save_fpu(current, regs); |
695 | disable_fpu(); | 695 | disable_fpu(); |
696 | last_task_used_math = NULL; | 696 | last_task_used_math = NULL; |
697 | regs->sr |= SR_FD; | 697 | regs->sr |= SR_FD; |