]> nv-tegra.nvidia Code Review - linux-2.6.git/commitdiff
powerpc: Move ptrace32.c from arch/ppc64 to arch/powerpc
authorPaul Mackerras <paulus@samba.org>
Wed, 19 Oct 2005 23:11:29 +0000 (09:11 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 19 Oct 2005 23:11:29 +0000 (09:11 +1000)
Also corrected my email address in ptrace.c and updated the comments
at the top of ptrace32.c.

Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/Makefile
arch/powerpc/kernel/ptrace.c
arch/powerpc/kernel/ptrace32.c [moved from arch/ppc64/kernel/ptrace32.c with 97% similarity]
arch/ppc64/kernel/Makefile

index 01b6d630edc9d1c35d232f3724ded34d72667850..5c5d2b5f3ca24c7e6ae4e11565aedb3e6710b6bf 100644 (file)
@@ -12,7 +12,7 @@ endif
 
 obj-y                          := semaphore.o cputable.o ptrace.o syscalls.o \
                                   signal_32.o
-obj-$(CONFIG_PPC64)            += binfmt_elf32.o sys_ppc32.o
+obj-$(CONFIG_PPC64)            += binfmt_elf32.o sys_ppc32.o ptrace32.o
 obj-$(CONFIG_ALTIVEC)          += vecemu.o vector.o
 obj-$(CONFIG_POWER4)           += idle_power4.o
 obj-$(CONFIG_PPC_OF)           += of_device.o
index 336b8bf542d7bdbd5d389ca22987577d86cf22bf..943425a9335486eed83a5337f33ddce49cba289f 100644 (file)
@@ -8,7 +8,7 @@
  *  linux/kernel/ptrace.c is by Ross Biro 1/23/92, edited by Linus Torvalds
  *
  * Modified by Cort Dougan (cort@hq.fsmlabs.com)
- * and Paul Mackerras (paulus@linuxcare.com.au).
+ * and Paul Mackerras (paulus@samba.org).
  *
  * This file is subject to the terms and conditions of the GNU General
  * Public License.  See the file README.legal in the main directory of
similarity index 97%
rename from arch/ppc64/kernel/ptrace32.c
rename to arch/powerpc/kernel/ptrace32.c
index 2e1df3ddd9fb744fe5aebad7f558a0eef34323df..544368277d7e53dfb145215f198892f263030c3a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  linux/arch/ppc64/kernel/ptrace32.c
+ * ptrace for 32-bit processes running on a 64-bit kernel.
  *
  *  PowerPC version
  *    Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
  *  linux/kernel/ptrace.c is by Ross Biro 1/23/92, edited by Linus Torvalds
  *
  * Modified by Cort Dougan (cort@hq.fsmlabs.com)
- * and Paul Mackerras (paulus@linuxcare.com.au).
+ * and Paul Mackerras (paulus@samba.org).
  *
  * This file is subject to the terms and conditions of the GNU General
- * Public License.  See the file README.legal in the main directory of
+ * Public License.  See the file COPYING in the main directory of
  * this archive for more details.
  */
 
@@ -40,7 +40,8 @@
  * in exit.c or in signal.c.
  */
 
-int compat_sys_ptrace(long request, long pid, unsigned long addr, unsigned long data)
+int compat_sys_ptrace(int request, int pid, unsigned long addr,
+                     unsigned long data)
 {
        struct task_struct *child;
        int ret = -EPERM;
index 19846d78b3293a0e9a270b1c4a2127d730d0b88c..8c9012f0ce6a59cf965ce3403c6128d6a670390f 100644 (file)
@@ -15,7 +15,7 @@ obj-y               +=        irq.o idle.o dma.o \
                        time.o signal.o \
                        align.o bitops.o pacaData.o \
                        udbg.o ioctl32.o \
-                       ptrace32.o rtc.o \
+                       rtc.o \
                        cpu_setup_power4.o \
                        iommu.o sysfs.o vdso.o pmc.o firmware.o
 obj-y += vdso32/ vdso64/