]> err.no Git - linux-2.6/commit
[MIPS] Fix fpu_save_double on 64-bit.
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Mon, 22 May 2006 15:47:41 +0000 (00:47 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 19 Jun 2006 16:39:13 +0000 (17:39 +0100)
commitc138e12f3a2e0421a4c8edf02587d2d394418679
tree66abbf27cbfc9030958b469aa4d826242417a752
parent734996820fd02b52a3fa0fcc09bdb914934bea4c
[MIPS] Fix fpu_save_double on 64-bit.

> Without this fix, _save_fp() in 64-bit kernel is seriously broken.
>
ffffffff8010bec0 <_save_fp>:
ffffffff8010bec0:       400d6000        mfc0    t1,c0_status
ffffffff8010bec4:       000c7140        sll     t2,t0,0x5
ffffffff8010bec8:       05c10011        bgez    t2,ffffffff8010bf10 <_save_fp+0x50>
ffffffff8010becc:       00000000        nop
ffffffff8010bed0:       f4810328        sdc1    $f1,808(a0)
> ...

Fix register usage in fpu_save_double() and make fpu_restore_double()
more symmetric with fpu_save_double().

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/r4k_switch.S
include/asm-mips/asmmacro-32.h
include/asm-mips/asmmacro-64.h