MIPS: FPU: Fix conflict of register usage
authorHuacai Chen <[email protected]>
Fri, 7 Feb 2014 14:31:33 +0000 (22:31 +0800)
committerRalf Baechle <[email protected]>
Fri, 14 Mar 2014 16:49:23 +0000 (17:49 +0100)
commitb616365e6dafb5d7c1cf2a8b6e8cb376a3f4a387
tree04e7d002f0b59362ac488e3c04c982d0cc5f5bce
parentf5868f05dc976ecd849d2a8115fab80301c127cd
MIPS: FPU: Fix conflict of register usage

In _restore_fp_context/_restore_fp_context32, t0 is used for both
CP0_Status and CP1_FCSR. This is a mistake and cause FP exeception on
boot, so fix it.

Signed-off-by: Huacai Chen <[email protected]>
Tested-by: Aaro Koskinen <[email protected]>
Tested-by: Andreas Barth <[email protected]>
Cc: John Crispin <[email protected]>
Cc: Steven J. Hill <[email protected]>
Cc: Aurelien Jarno <[email protected]>
Cc: [email protected]
Cc: Fuxin Zhang <[email protected]>
Cc: Zhangjin Wu <[email protected]>
Patchwork: https://patchwork.linux-mips.org/patch/6507/
Signed-off-by: Ralf Baechle <[email protected]>
arch/mips/kernel/r4k_fpu.S