]> git.baikalelectronics.ru Git - kernel.git/commit
[MIPS] Store sign-extend register values for PTRACE_GETREGS
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Thu, 25 Oct 2007 15:53:02 +0000 (00:53 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 29 Oct 2007 19:35:36 +0000 (19:35 +0000)
commita20ebcde9f50bae9a5fab47c706700c1cb38a827
tree838b49148ee2a558d71d8ab7dc92b2e6b230d53b
parent35776afcb2d25ed10346a903238d865c1846b79c
[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