summaryrefslogtreecommitdiff
path: root/arch/sparc/kernel/syscalls/syscall.tbl
diff options
context:
space:
mode:
authorLudwig Rydberg <ludwig.rydberg@gaisler.com>2026-01-19 15:47:53 +0100
committerAndreas Larsson <andreas@gaisler.com>2026-02-06 15:03:43 +0100
commit2153b2e8917b73e9e7fae8963f03b8e60bd8f5ff (patch)
tree1295c50e1135aff9140c7293dad6f622e61ed9a0 /arch/sparc/kernel/syscalls/syscall.tbl
parente38eba3b77878ada327a572a41596a3b0b44e522 (diff)
downloadlwn-2153b2e8917b73e9e7fae8963f03b8e60bd8f5ff.tar.gz
lwn-2153b2e8917b73e9e7fae8963f03b8e60bd8f5ff.zip
sparc: Add architecture support for clone3
Add support for the clone3 system call to the SPARC architectures. The implementation follows the pattern of the original clone syscall. However, instead of explicitly calling kernel_clone, the clone3 handler calls the generic sys_clone3 handler in kernel/fork. In case no stack is provided, the parents stack is reused. The return value convention for clone3 follows the regular kernel return value convention (in contrast to the original clone/fork on SPARC). Closes: https://github.com/sparclinux/issues/issues/10 Signed-off-by: Ludwig Rydberg <ludwig.rydberg@gaisler.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Andreas Larsson <andreas@gaisler.com> Tested-by: Andreas Larsson <andreas@gaisler.com> Tested-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Link: https://lore.kernel.org/r/20260119144753.27945-3-ludwig.rydberg@gaisler.com Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Diffstat (limited to 'arch/sparc/kernel/syscalls/syscall.tbl')
-rw-r--r--arch/sparc/kernel/syscalls/syscall.tbl2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/kernel/syscalls/syscall.tbl b/arch/sparc/kernel/syscalls/syscall.tbl
index 39aa26b6a50b..c0307bb09892 100644
--- a/arch/sparc/kernel/syscalls/syscall.tbl
+++ b/arch/sparc/kernel/syscalls/syscall.tbl
@@ -480,7 +480,7 @@
432 common fsmount sys_fsmount
433 common fspick sys_fspick
434 common pidfd_open sys_pidfd_open
-# 435 reserved for clone3
+435 common clone3 __sys_clone3
436 common close_range sys_close_range
437 common openat2 sys_openat2
438 common pidfd_getfd sys_pidfd_getfd