diff options
author | Paul Burton <paul.burton@mips.com> | 2019-10-02 21:59:49 +0300 |
---|---|---|
committer | Paul Burton <paul.burton@mips.com> | 2019-10-03 00:06:41 +0300 |
commit | 0671c5b84e9e0a6d42d22da9b5d093787ac1c5f3 (patch) | |
tree | 92310d7be641e7173eba924016b6d0345cb85c18 /arch/mips/include | |
parent | 0228ecf6128c92b47eadd2ac270c5574d9150c09 (diff) | |
download | linux-0671c5b84e9e0a6d42d22da9b5d093787ac1c5f3.tar.xz |
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
Diffstat (limited to 'arch/mips/include')
-rw-r--r-- | arch/mips/include/asm/unistd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/include/asm/unistd.h b/arch/mips/include/asm/unistd.h index 071053ece677..5d70babfc9ee 100644 --- a/arch/mips/include/asm/unistd.h +++ b/arch/mips/include/asm/unistd.h @@ -52,6 +52,7 @@ # endif #define __ARCH_WANT_SYS_FORK #define __ARCH_WANT_SYS_CLONE +#define __ARCH_WANT_SYS_CLONE3 /* whitelists for checksyscalls */ #define __IGNORE_fadvise64_64 |