summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/ftrace.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2012-07-14 09:22:05 +0200
committerRalf Baechle <ralf@linux-mips.org>2013-10-29 21:25:02 +0100
commit46e12c07b3b9603c60fc1d421ff18618241cb081 (patch)
treea969d44689686676318e9ff07f3602a5ff969d56 /arch/mips/kernel/ftrace.c
parentMIPS: Provide arch_syscall_addr. (diff)
downloadlinux-46e12c07b3b9603c60fc1d421ff18618241cb081.tar.xz
linux-46e12c07b3b9603c60fc1d421ff18618241cb081.zip
MIPS: O32 / 32-bit: Always copy 4 stack arguments.
This gets us rid of the hard to maintain table of the number of syscall arguments and paves the way for further restructuring of the syscall code. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/ftrace.c')
-rw-r--r--arch/mips/kernel/ftrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/ftrace.c b/arch/mips/kernel/ftrace.c
index 6e022c44f447..185ba258361b 100644
--- a/arch/mips/kernel/ftrace.c
+++ b/arch/mips/kernel/ftrace.c
@@ -383,7 +383,7 @@ unsigned long __init arch_syscall_addr(int nr)
{
#ifdef CONFIG_MIPS32_N32
if (nr >= __NR_N32_Linux && nr <= __NR_N32_Linux + __NR_N32_Linux_syscalls)
- return (unsigned long)sysn32_call_table[(nr - __NR_N32_Linux) * 2];
+ return (unsigned long)sysn32_call_table[nr - __NR_N32_Linux];
#endif
if (nr >= __NR_64_Linux && nr <= __NR_64_Linux + __NR_64_Linux_syscalls)
return (unsigned long)sys_call_table[nr - __NR_64_Linux];