]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Wire up clone3 syscall
authorPaul Burton <paul.burton@mips.com>
Wed, 2 Oct 2019 18:59:49 +0000 (18:59 +0000)
committerPaul Burton <paul.burton@mips.com>
Wed, 2 Oct 2019 21:06:41 +0000 (14:06 -0700)
commitc2efa7c384c970e1c3e3f12b6fcc7ca8f1f32ca6
tree92310d7be641e7173eba924016b6d0345cb85c18
parentf67b4f5f116837a7766763f5760bac97d334139e
MIPS: Wire up clone3 syscall

Wire up the new clone3 syscall for MIPS, using save_static_function() to
generate a wrapper that saves registers $s0-$s7 prior to invoking the
generic sys_clone3 function just like we do for plain old clone.

Tested atop 64r6el_defconfig using o32, n32 & n64 builds of the simple
test program from:

  https://lore.kernel.org/lkml/20190716130631.tohj4ub54md25dys@brauner.io/

Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: Christian Brauner <christian@brauner.io>
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Cc: linux-mips@vger.kernel.org
arch/mips/include/asm/unistd.h
arch/mips/kernel/syscall.c
arch/mips/kernel/syscalls/syscall_n32.tbl
arch/mips/kernel/syscalls/syscall_n64.tbl
arch/mips/kernel/syscalls/syscall_o32.tbl