[POWERPC] ptrace cleanups
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 4 Jun 2007 05:15:41 +0000 (15:15 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 14 Jun 2007 12:29:56 +0000 (22:29 +1000)
commitacd89828484db6371202f5d292781ae6f832eda2
treedff9b004db1d108ece5154b708b273723907d041
parent0b3d5c48a98f7bd2d38962f5a67b480ac5656fb9
[POWERPC] ptrace cleanups

The powerpc ptrace code has some weirdness, like a ptrace-common.h file that
is actually ppc64 only and some of the 32 bits code ifdef'ed inside ptrace.c.

There are also separate implementations for things like get/set_vrregs for
32 and 64 bits which is totally unnecessary.

This patch cleans that up a bit by having a ptrace-common.h which contains
really common code (and makes a lot more code common), and ptrace-ppc32.h and
ptrace-ppc64.h files that contain the few remaining different bits.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/ptrace-common.h
arch/powerpc/kernel/ptrace-ppc32.h [new file with mode: 0644]
arch/powerpc/kernel/ptrace-ppc64.h [new file with mode: 0644]
arch/powerpc/kernel/ptrace.c
arch/powerpc/kernel/ptrace32.c