Skip to content

Commit 46e12c0

Browse files
committed
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 <[email protected]>
1 parent 19e2e17 commit 46e12c0

File tree

2 files changed

+401
-433
lines changed

2 files changed

+401
-433
lines changed

arch/mips/kernel/ftrace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ unsigned long __init arch_syscall_addr(int nr)
383383
{
384384
#ifdef CONFIG_MIPS32_N32
385385
if (nr >= __NR_N32_Linux && nr <= __NR_N32_Linux + __NR_N32_Linux_syscalls)
386-
return (unsigned long)sysn32_call_table[(nr - __NR_N32_Linux) * 2];
386+
return (unsigned long)sysn32_call_table[nr - __NR_N32_Linux];
387387
#endif
388388
if (nr >= __NR_64_Linux && nr <= __NR_64_Linux + __NR_64_Linux_syscalls)
389389
return (unsigned long)sys_call_table[nr - __NR_64_Linux];

0 commit comments

Comments
 (0)