]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[POWERPC] Use regset code for PTRACE_*REGS* requests
authorRoland McGrath <roland@redhat.com>
Thu, 20 Dec 2007 11:58:36 +0000 (03:58 -0800)
committerPaul Mackerras <paulus@samba.org>
Thu, 7 Feb 2008 09:40:18 +0000 (20:40 +1100)
commitc391cd0093a2c86a6d1bc256198caad29fff0f60
tree69673f98aaed497023446be1634bcb05c3431209
parent01e31dbabc020bf82e7e5359c031a550daafb8ff
[POWERPC] Use regset code for PTRACE_*REGS* requests

This replaces all the code for powerpc PTRACE_*REGS* requests with
simple calls to copy_regset_from_user and copy_regset_to_user.  All
the ptrace formats are either the whole corresponding user_regset
format (core dump format) or a leading subset of it, so we can get
rid of all the remaining embedded knowledge of both those layouts
and of the internal data structures they correspond to.  Only the
user_regset accessors need to implement that.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/ptrace.c