]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: ptrace: Also initialize the FP context on individual FCSR writes
authorMaciej W. Rozycki <macro@imgtec.com>
Fri, 28 Oct 2016 07:20:09 +0000 (08:20 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 4 Nov 2016 00:28:17 +0000 (01:28 +0100)
commitc173d846dd8111858085dd4144af1560524568d5
tree5971837f1b4c7c2e5fe92a3bb7c7c50f98822cee
parente02bdc6266a6cff1471f5e8afa4f02d5181ec13f
MIPS: ptrace: Also initialize the FP context on individual FCSR writes

Complement commit 19704332ab60 ("MIPS: prevent FP context set via ptrace
being discarded") and also initialize the FP context whenever FCSR alone
is written with a PTRACE_POKEUSR request addressing FPC_CSR, rather than
along with the full FPU register set in the case of the PTRACE_SETFPREGS
request.

Signed-off-by: Maciej W. Rozycki <macro@imgtec.com>
Cc: Paul Burton <paul.burton@imgtec.com>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/14459/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/ptrace.c