Skip to contentSkip to conversation

parisc sys_ptrace prototype

RFC New Christoph Hellwig 1 participant 1 message Sep 19, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

RFC 1/1 parisc sys_ptrace prototype

parisc has a different prototype for ptrace in that it passes the pid as pid_t, not as long. This doesn't matter on 32bit architectures because both are 32bit, but it's different for 64bit kernel.

OTOH I've heard 64bit parisc userland is mostly non-existant so maybe we could still fix this, greatly simplifying a later ptrace consolidation.

arch/parisc/kernel/ptrace.c +1 -1
Index: linux-2.6/arch/parisc/kernel/ptrace.c
===================================================================
@@ -78,7 +78,7 @@
 	pa_psw(child)->l = 0;
 }
 
-long sys_ptrace(long request, pid_t pid, long addr, long data)
+long sys_ptrace(long request, long pid, long addr, long data)
 {
 	struct task_struct *child;
 	long ret;
include/asm-parisc/unistd.h +1 -1
Index: linux-2.6/include/asm-parisc/unistd.h
===================================================================
@@ -1005,7 +1005,7 @@
 		struct pt_regs *regs);
 int sys_vfork(struct pt_regs *regs);
 int sys_pipe(int *fildes);
-long sys_ptrace(long request, pid_t pid, long addr, long data);
+long sys_ptrace(long request, long pid, long addr, long data);
 struct sigaction;
 asmlinkage long sys_rt_sigaction(int sig,
 				const struct sigaction __user *act,

_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux