aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/unistd.h
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2019-07-22 22:26:56 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2019-07-29 09:34:27 +1000
commitcee3536d24a1d5db66b9f68c3ece0af128187ab4 (patch)
treecaeb86d802caa89975cbd86fb1f83ff5ff7fb191 /arch/powerpc/include/asm/unistd.h
parentLinux 5.3-rc2 (diff)
downloadlinux-dev-cee3536d24a1d5db66b9f68c3ece0af128187ab4.tar.xz
linux-dev-cee3536d24a1d5db66b9f68c3ece0af128187ab4.zip
powerpc: Wire up clone3 syscall
Wire up the new clone3 syscall added in commit 7f192e3cd316 ("fork: add clone3"). This requires a ppc_clone3 wrapper, in order to save the non-volatile GPRs before calling into the generic syscall code. Otherwise we hit the BUG_ON in CHECK_FULL_REGS in copy_thread(). Lightly tested using Christian's test code on a Power8 LE VM. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Acked-by: Christian Brauner <christian@brauner.io> Link: https://lore.kernel.org/r/20190724140259.23554-1-mpe@ellerman.id.au
Diffstat (limited to 'arch/powerpc/include/asm/unistd.h')
-rw-r--r--arch/powerpc/include/asm/unistd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/unistd.h b/arch/powerpc/include/asm/unistd.h
index 68473c3c471c..b0720c7c3fcf 100644
--- a/arch/powerpc/include/asm/unistd.h
+++ b/arch/powerpc/include/asm/unistd.h
@@ -49,6 +49,7 @@
#define __ARCH_WANT_SYS_FORK
#define __ARCH_WANT_SYS_VFORK
#define __ARCH_WANT_SYS_CLONE
+#define __ARCH_WANT_SYS_CLONE3
#endif /* __ASSEMBLY__ */
#endif /* _ASM_POWERPC_UNISTD_H_ */