Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46e12c07 authored by Ralf Baechle's avatar Ralf Baechle
Browse files

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: default avatarRalf Baechle <ralf@linux-mips.org>
parent 19e2e172
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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];
+400 −432

File changed.

Preview size limit exceeded, changes collapsed.