MIPS: Fix ISA I/II FP signal context offsets
authorMaciej W. Rozycki <[email protected]>
Mon, 31 Oct 2016 16:27:01 +0000 (16:27 +0000)
committerRalf Baechle <[email protected]>
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 <[email protected]>
Cc: Paul Burton <[email protected]>
Cc: [email protected]
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/14476/
Signed-off-by: Ralf Baechle <[email protected]>
arch/mips/kernel/r2300_fpu.S
arch/mips/kernel/r6000_fpu.S