From patchwork Sat Feb 2 23:46:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 2084841 Return-Path: X-Original-To: patchwork-linux-parisc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id AC65FDFB79 for ; Sat, 2 Feb 2013 23:46:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751611Ab3BBXqs (ORCPT ); Sat, 2 Feb 2013 18:46:48 -0500 Received: from mout.gmx.net ([212.227.17.21]:54053 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751492Ab3BBXqr (ORCPT ); Sat, 2 Feb 2013 18:46:47 -0500 Received: from mailout-de.gmx.net ([10.1.76.4]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0Lmxbm-1Uby5y1RoS-00h7yX for ; Sun, 03 Feb 2013 00:46:46 +0100 Received: (qmail invoked by alias); 02 Feb 2013 23:46:46 -0000 Received: from p54AD07C7.dip0.t-ipconnect.de (EHLO p100.box) [84.173.7.199] by mail.gmx.net (mp004) with SMTP; 03 Feb 2013 00:46:46 +0100 X-Authenticated: #1045983 X-Provags-ID: V01U2FsdGVkX1/vAYph/QDvvUPqwPswJVN+4+oAE0b53WL4BpEpO/ iuySj1WE82OPQc Date: Sun, 3 Feb 2013 00:46:43 +0100 From: Helge Deller To: linux-parisc@vger.kernel.org, James Bottomley , John David Anglin Subject: [PATCH] parisc: Pass the 5th and 6th argument for on the stack for 32bit ptraced processes too Message-ID: <20130202234643.GE1188@p100.box> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Y-GMX-Trusted: 0 Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org Author: John David Anglin Signed-off-by: John David Anglin Signed-off-by: Helge Deller --- To unsubscribe from this list: send the line "unsubscribe linux-parisc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/parisc/kernel/syscall.S b/arch/parisc/kernel/syscall.S index 86742df..c893ec4 100644 --- a/arch/parisc/kernel/syscall.S +++ b/arch/parisc/kernel/syscall.S @@ -309,10 +309,13 @@ tracesys_next: LDREG TASK_PT_GR25(%r1), %r25 LDREG TASK_PT_GR24(%r1), %r24 LDREG TASK_PT_GR23(%r1), %r23 -#ifdef CONFIG_64BIT LDREG TASK_PT_GR22(%r1), %r22 LDREG TASK_PT_GR21(%r1), %r21 +#ifdef CONFIG_64BIT ldo -16(%r30),%r29 /* Reference param save area */ +#else + stw %r22, -52(%r30) /* 5th argument */ + stw %r21, -56(%r30) /* 6th argument */ #endif comiclr,>>= __NR_Linux_syscalls, %r20, %r0