[MIPS] Store sign-extend register values for PTRACE_GETREGS
commit62b14c24b10033591bbab16dea165d696a616f37
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Thu, 25 Oct 2007 15:53:02 +0000 (26 00:53 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 29 Oct 2007 19:35:36 +0000 (29 19:35 +0000)
tree838b49148ee2a558d71d8ab7dc92b2e6b230d53b
parent26c288f82c74dba08da6321c626c101a7aa8575b
[MIPS] Store sign-extend register values for PTRACE_GETREGS

A comment on ptrace_getregs() states "Registers are sign extended to
fill the available space." but it is not true.  Fix code to match the
comment.  Also fix casts on each caller to get rid of some warnings.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/ptrace.c
arch/mips/kernel/ptrace32.c