Skip to content

Commit

Permalink
MIPS: O32 / 32-bit: Always copy 4 stack arguments.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ralf Baechle committed Oct 29, 2013
1 parent 19e2e17 commit 46e12c0
Show file tree
Hide file tree
Showing 2 changed files with 401 additions and 433 deletions.
2 changes: 1 addition & 1 deletion arch/mips/kernel/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
Loading

0 comments on commit 46e12c0

Please sign in to comment.