Christoph Hellwig wrote: > Currently mips and parisc are the only architectures not yet converted > to the generic compat_sys_ptrace. The conversion is rather trivial and > only involves splitting the current compat_ptrace handler into a > compat_arch_ptrace with all the meat and the existing compat_sys_ptrace > that does all the boilerplate code, just like the generic sys_ptrace. > To get the generic compat_sys_ptrace you have to add a > > #define __ARCH_WANT_COMPAT_SYS_PTRACE > > to ptrace.h for now, but once mips and parisc are converted this will of > course be removed. Take a look at the powerpc conversion as an example: > > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git&a=commitdiff&h=81e695c026eeda9a97e412fa4f458e5cab2f6c85 This patch does the compat_sys_ptrace conversion for parisc. In addition it does convert the parisc ptrace code to use the architecture-independent ptrace infrastructure instead of own coding. I did run the gdb test case on 32bit and the result was identical. Sadly I didn't got a 64bit kernel to boot yet (due to other reasons), which is why I couldn't verify the new compat code. Nevertheless, since the compat code did compiled successfully for me, and since it is really small now, and I don't expect any problems and as such I'm sending this patch here as RFC. The size of the patch became pretty big, but mostly it's about deleting now unneeded code, shuffling some code around and adapting the indenting. Signed-off-by: Helge Deller arch/parisc/kernel/ptrace.c | 429 ++++++++++++++----------------------- arch/parisc/kernel/syscall_table.S | 2 include/asm-parisc/ptrace.h | 10 3 files changed, 183 insertions(+), 258 deletions(-)