At Wed, 21 Jan 2015 09:51:34 +0100, Arnd Bergmann wrote: > > On Wednesday 21 January 2015 13:31:47 Yoshinori Sato wrote: > > > +long arch_ptrace(struct task_struct *child, long request, > > + unsigned long addr, unsigned long data) > > +{ > > + int ret; > > + int regno = addr >> 2; > > + unsigned long __user *datap = (unsigned long __user *) data; > > + > > + switch (request) { > > + /* read the word at location addr in the USER area. */ > > + case PTRACE_PEEKUSR: { > ... > > + case PTRACE_POKEUSR: /* write the word at location addr > ... > > + case PTRACE_GETREGS: { /* Get all gp regs from the child. */ > ... > > + case PTRACE_SETREGS: { /* Set all gp regs in the child. */ > > For modern architecture implementations, we now use 'regset' to > abstract these, and simplify the arch_ptrace interface to > a single ptrace_request call. See openrisc or arm64 as examples. > Yes. This files use old implementation. I will rewrite V2 patch. > Arnd > -- > To unsubscribe from this list: send the line "unsubscribe linux-arch" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html