mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-28 18:27:42 +08:00
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>
13 lines
351 B
C
13 lines
351 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _SPARC64_SYSCALLS_H
|
|
#define _SPARC64_SYSCALLS_H
|
|
|
|
struct pt_regs;
|
|
|
|
asmlinkage long sparc_fork(struct pt_regs *regs);
|
|
asmlinkage long sparc_vfork(struct pt_regs *regs);
|
|
asmlinkage long sparc_clone(struct pt_regs *regs);
|
|
asmlinkage long sparc_clone3(struct pt_regs *regs);
|
|
|
|
#endif /* _SPARC64_SYSCALLS_H */
|