Alex Smith a79ebea620 MIPS: ptrace: Fix user pt_regs definition, use in ptrace_{get, set}regs()
In uapi/asm/ptrace.h, a user version of pt_regs is defined wrapped in
ifndef __KERNEL__. This structure definition does not match anything
used by any kernel API, in particular it does not match the format used
by PTRACE_{GET,SET}REGS.

Therefore, replace the structure definition with one matching what is
used by PTRACE_{GET,SET}REGS. The format used by these is the same for
both 32-bit and 64-bit.

Also, change the implementation of PTRACE_{GET,SET}REGS to use this new
structure definition. The structure is renamed to user_pt_regs when
__KERNEL__ is defined to avoid conflicts with the kernel's own pt_regs.

Signed-off-by: Alex Smith <alex@alex-smith.me.uk>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/7457/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2014-08-02 00:06:37 +02:00
..
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2014-07-30 21:47:00 +02:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2014-05-24 00:07:01 +02:00
2014-05-24 00:07:01 +02:00
2014-05-24 00:07:01 +02:00
2011-12-07 22:03:45 +00:00
2014-05-24 00:07:01 +02:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2012-12-13 16:46:47 +01:00
2014-05-30 21:01:09 +02:00
2014-05-24 00:07:01 +02:00
2014-05-24 00:07:01 +02:00
2013-02-01 10:00:22 +01:00
2014-05-02 16:39:10 +01:00
2014-05-24 00:07:01 +02:00
2014-05-30 21:01:09 +02:00
2013-02-01 10:00:22 +01:00
2014-05-24 00:07:01 +02:00
2014-01-22 20:19:02 +01:00
2014-07-30 21:46:41 +02:00
2014-07-30 21:46:41 +02:00
2014-07-30 21:46:41 +02:00
2014-07-30 21:46:19 +02:00
2014-05-24 00:07:01 +02:00
2014-05-24 00:07:01 +02:00
2012-03-23 16:58:42 -07:00
2014-05-24 00:07:01 +02:00