From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Mon, 17 Mar 2014 15:41:13 +0100 (CET) Received: from mailapp01.imgtec.com ([195.89.28.115]:41449 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S6867486AbaCQOlKc1asu (ORCPT ); Mon, 17 Mar 2014 15:41:10 +0100 Received: from KLMAIL01.kl.imgtec.org (unknown [192.168.5.35]) by Websense Email Security Gateway with ESMTPS id 566CA34EC0F5D; Mon, 17 Mar 2014 14:41:02 +0000 (GMT) Received: from KLMAIL02.kl.imgtec.org (192.168.5.97) by KLMAIL01.kl.imgtec.org (192.168.5.35) with Microsoft SMTP Server (TLS) id 14.3.174.1; Mon, 17 Mar 2014 14:41:04 +0000 Received: from LEMAIL01.le.imgtec.org (192.168.152.62) by klmail02.kl.imgtec.org (192.168.5.97) with Microsoft SMTP Server (TLS) id 14.3.174.1; Mon, 17 Mar 2014 14:41:04 +0000 Received: from [192.168.154.136] (192.168.154.136) by LEMAIL01.le.imgtec.org (192.168.152.62) with Microsoft SMTP Server (TLS) id 14.3.174.1; Mon, 17 Mar 2014 14:41:03 +0000 Message-ID: <5327097E.4090709@imgtec.com> Date: Mon, 17 Mar 2014 14:41:02 +0000 From: Markos Chandras User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Lars Persson , CC: Lars Persson Subject: Re: [PATCH v2] MIPS: Fix syscall tracing interface References: <1395054853-3465-1-git-send-email-larper@axis.com> In-Reply-To: <1395054853-3465-1-git-send-email-larper@axis.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.154.136] Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 39482 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: Markos.Chandras@imgtec.com Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips Hi Lars, On 03/17/2014 11:14 AM, Lars Persson wrote: > Fix pointer computation for stack-based arguments. > > Signed-off-by: Lars Persson > --- > arch/mips/include/asm/syscall.h | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/mips/include/asm/syscall.h b/arch/mips/include/asm/syscall.h > index c71e40a..6c488c8 100644 > --- a/arch/mips/include/asm/syscall.h > +++ b/arch/mips/include/asm/syscall.h > @@ -51,14 +51,14 @@ static inline unsigned long mips_get_syscall_arg(unsigned long *arg, > > #ifdef CONFIG_32BIT > case 4: case 5: case 6: case 7: > - return get_user(*arg, (int *)usp + 4 * n); > + return get_user(*arg, (int *)usp + n); > #endif > > #ifdef CONFIG_64BIT > case 4: case 5: case 6: case 7: > #ifdef CONFIG_MIPS32_O32 > if (test_thread_flag(TIF_32BIT_REGS)) > - return get_user(*arg, (int *)usp + 4 * n); > + return get_user(*arg, (int *)usp + n); > else > #endif > *arg = regs->regs[4 + n]; > Thanks for the v2. It looks good to me but I haven't tested it. Reviewed-by: Markos Chandras -- markos From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailapp01.imgtec.com ([195.89.28.115]:41449 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S6867486AbaCQOlKc1asu (ORCPT ); Mon, 17 Mar 2014 15:41:10 +0100 Message-ID: <5327097E.4090709@imgtec.com> Date: Mon, 17 Mar 2014 14:41:02 +0000 From: Markos Chandras MIME-Version: 1.0 Subject: Re: [PATCH v2] MIPS: Fix syscall tracing interface References: <1395054853-3465-1-git-send-email-larper@axis.com> In-Reply-To: <1395054853-3465-1-git-send-email-larper@axis.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Return-Path: Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-subscribe: List-owner: List-post: List-archive: To: Lars Persson , linux-mips@linux-mips.org Cc: Lars Persson Message-ID: <20140317144102.jeFZQoj6r4wax8QE5EubMVwdfDbFXp8-PInOhiVc9n0@z> Hi Lars, On 03/17/2014 11:14 AM, Lars Persson wrote: > Fix pointer computation for stack-based arguments. > > Signed-off-by: Lars Persson > --- > arch/mips/include/asm/syscall.h | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/mips/include/asm/syscall.h b/arch/mips/include/asm/syscall.h > index c71e40a..6c488c8 100644 > --- a/arch/mips/include/asm/syscall.h > +++ b/arch/mips/include/asm/syscall.h > @@ -51,14 +51,14 @@ static inline unsigned long mips_get_syscall_arg(unsigned long *arg, > > #ifdef CONFIG_32BIT > case 4: case 5: case 6: case 7: > - return get_user(*arg, (int *)usp + 4 * n); > + return get_user(*arg, (int *)usp + n); > #endif > > #ifdef CONFIG_64BIT > case 4: case 5: case 6: case 7: > #ifdef CONFIG_MIPS32_O32 > if (test_thread_flag(TIF_32BIT_REGS)) > - return get_user(*arg, (int *)usp + 4 * n); > + return get_user(*arg, (int *)usp + n); > else > #endif > *arg = regs->regs[4 + n]; > Thanks for the v2. It looks good to me but I haven't tested it. Reviewed-by: Markos Chandras -- markos