From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yoshinori Sato Subject: Re: [PATCH 13/16] h8300: ptrace helper Date: Thu, 22 Jan 2015 02:08:24 +0900 Message-ID: <87vbk0kqnr.wl-ysato@users.sourceforge.jp> References: <87h9vkvjnw.wl-ysato@users.sourceforge.jp> <2669606.8TdqsMIDS0@wuerfel> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from mail1.asahi-net.or.jp ([202.224.39.197]:45939 "EHLO mail1.asahi-net.or.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752718AbbAURI0 (ORCPT ); Wed, 21 Jan 2015 12:08:26 -0500 In-Reply-To: <2669606.8TdqsMIDS0@wuerfel> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Arnd Bergmann Cc: linux-arch@vger.kernel.org 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@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html