linux/arch/sparc
Ludwig Rydberg 2153b2e891 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>
2026-02-06 15:03:43 +01:00
..
boot kbuild: Abort make on install failures 2024-07-20 13:34:54 +09:00
configs This update includes the following changes: 2025-12-03 11:28:38 -08:00
crypto lib/crypto: sparc/md5: Migrate optimized code into library 2025-08-26 12:52:28 -04:00
include sparc: Add architecture support for clone3 2026-02-06 15:03:43 +01:00
kernel sparc: Add architecture support for clone3 2026-02-06 15:03:43 +01:00
lib sparc: Drop the "-ansi" from the asflags 2025-09-26 16:55:21 +02:00
math-emu treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
mm sparc: Use physical address DMA mapping 2025-10-29 10:27:30 +01:00
net Modules changes for v6.10-rc1 2024-05-15 14:05:08 -07:00
power sparc64: Fix prototype warnings in hibernate.c 2024-07-11 15:58:28 +02:00
prom sparc64: Replace deprecated strcpy() with strscpy() in prom_nextprop() 2025-09-26 17:27:06 +02:00
vdso stackleak: Split KSTACK_ERASE_CFLAGS from GCC_PLUGINS_CFLAGS 2025-07-21 21:40:57 -07:00
video arch: Fix name collision with ACPI's video.o 2024-05-20 21:17:06 +00:00
Kbuild kbuild: use more subdir- for visiting subdirectories while cleaning 2021-10-24 13:49:46 +09:00
Kconfig sparc: Implement ARCH_HAS_CC_CAN_LINK 2026-01-26 18:11:49 +01:00
Kconfig.debug sparc: select FRAME_POINTER instead of redefining it 2024-02-16 16:50:26 +01:00
Makefile sparc/build: Put usage of -fcall-used* flags behind cc-option 2024-11-16 09:52:56 +01:00