481bed4542
The sys_ptrace boilerplate code (everything outside the big switch statement for the arch-specific requests) is shared by most architectures. This patch moves it to kernel/ptrace.c and leaves the arch-specific code as arch_ptrace. Some architectures have a too different ptrace so we have to exclude them. They continue to keep their implementations. For sh64 I had to add a sh64_ptrace wrapper because it does some initialization on the first call. For um I removed an ifdefed SUBARCH_PTRACE_SPECIAL block, but SUBARCH_PTRACE_SPECIAL isn't defined anywhere in the tree. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Paul Mackerras <paulus@samba.org> Acked-by: Ralf Baechle <ralf@linux-mips.org> Acked-By: David Howells <dhowells@redhat.com> Acked-by: Russell King <rmk+kernel@arm.linux.org.uk> Acked-by: Paul Mundt <lethal@linux-sh.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> |
||
---|---|---|
.. | ||
asm-offsets.c | ||
binfmt_elf32.c | ||
btext.c | ||
cputable.c | ||
entry_32.S | ||
entry_64.S | ||
fpu.S | ||
head_4xx.S | ||
head_8xx.S | ||
head_32.S | ||
head_44x.S | ||
head_64.S | ||
head_fsl_booke.S | ||
idle_6xx.S | ||
idle_power4.S | ||
init_task.c | ||
lparmap.c | ||
Makefile | ||
misc_32.S | ||
misc_64.S | ||
of_device.c | ||
pmc.c | ||
ppc32.h | ||
ppc_ksyms.c | ||
process.c | ||
prom_init.c | ||
prom.c | ||
ptrace32.c | ||
ptrace.c | ||
rtas_flash.c | ||
rtas-proc.c | ||
rtas.c | ||
semaphore.c | ||
setup_32.c | ||
setup_64.c | ||
setup-common.c | ||
signal_32.c | ||
signal_64.c | ||
smp-tbsync.c | ||
smp.c | ||
sys_ppc32.c | ||
syscalls.c | ||
systbl.S | ||
time.c | ||
traps.c | ||
vecemu.c | ||
vector.S | ||
vio.c | ||
vmlinux.lds.S |