]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: Fix ISA I/II FP signal context offsets
authorMaciej W. Rozycki <macro@imgtec.com>
Mon, 31 Oct 2016 16:27:01 +0000 (16:27 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 4 Nov 2016 00:38:52 +0000 (01:38 +0100)
commit758ef0a939d4c003381d2a97d9fb51b2d6d7e162
tree99a480803264184a3215421820a07863ae6803ac
parent6daaa3266db9cc488612690e42c23b0763e2b49a
MIPS: Fix ISA I/II FP signal context offsets

Fix a regression introduced with commit 2db9ca0a3551 ("MIPS: Use struct
mips_abi offsets to save FP context") for MIPS I/I FP signal contexts,
by converting save/restore code to the updated internal API.  Start FGR
offsets from 0 rather than SC_FPREGS from $a0 and use $a1 rather than
the offset of SC_FPC_CSR from $a0 for the Floating Point Control/Status
Register (FCSR).

Document the new internal API and adjust assembly code formatting for
consistency.

Signed-off-by: Maciej W. Rozycki <macro@imgtec.com>
Cc: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/14476/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/r2300_fpu.S
arch/mips/kernel/r6000_fpu.S