From mboxrd@z Thu Jan 1 00:00:00 1970 From: Helge Deller Subject: Re: [PATCH] parisc: Fix syscall restarts Date: Sun, 20 Dec 2015 21:21:53 +0100 Message-ID: <56770DE1.7050904@gmx.de> References: <20151218233034.GA24910@p100.box> <6E922C83-B2CF-4B18-94B4-E848EF7305F9@bell.net> <56770D46.3030909@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Cc: linux-parisc@vger.kernel.org, James Bottomley , Mathieu Desnoyers To: John David Anglin Return-path: In-Reply-To: <56770D46.3030909@gmx.de> List-ID: List-Id: linux-parisc.vger.kernel.org On 20.12.2015 21:19, Helge Deller wrote: > On 20.12.2015 21:14, John David Anglin wrote: >> On 2015-12-18, at 6:30 PM, Helge Deller wrote: >> >>> + /* Get assembler opcode of code in delay branch */ >>> + uaddr = (unsigned int *) (regs->gr[31] + 1); >> >> Shouldn't increment be 4? > > No. > The first address which is being executed in userspace is regs->gr[31]-3. I could (should?) have used uaddr = (unsigned int *) ((regs->gr[31] & ~3) + 4); Helge