]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sh: Fix ptrace fpu state initialisation
authorPhil Edworthy <Phil.Edworthy@renesas.com>
Fri, 18 Mar 2011 14:16:31 +0000 (14:16 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Mar 2011 19:00:24 +0000 (12:00 -0700)
commitef2109c5172a277790f38fccc43d32aaaa7f405d
tree58643ca00562944cf709350a0b74cbbf8a93cdb0
parent74a9001a740f1073e400d02c5d540359adb589bc
sh: Fix ptrace fpu state initialisation

commit c49b6ecf0870e78fa40497cd8b142915c1d5c7c9 upstream.

Commit 0ea820cf introduced the PTRACE_GETFPREGS/SETFPREGS cmds,
but gdb-server still accesses the FPU state using the
PTRACE_PEEKUSR/POKEUSR commands. In this case, xstate was not
initialised.

Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/sh/kernel/ptrace_32.c
arch/sh/kernel/ptrace_64.c