From: Lars Persson Date: Mon, 17 Mar 2014 11:14:13 +0000 (+0100) Subject: MIPS: Fix syscall tracing interface X-Git-Tag: upstream/snapshot3+hdmi~3280^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=86ca57b5a5525dbf89fc2a3285781fae807276b0;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git MIPS: Fix syscall tracing interface Fix pointer computation for stack-based arguments. Signed-off-by: Lars Persson Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/6620/ Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/include/asm/syscall.h b/arch/mips/include/asm/syscall.h index a7e8a53..f35b131 100644 --- a/arch/mips/include/asm/syscall.h +++ b/arch/mips/include/asm/syscall.h @@ -40,14 +40,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];