mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00: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 <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Reviewed-by: Andreas Larsson <[email protected]> Tested-by: Andreas Larsson <[email protected]> Tested-by: John Paul Adrian Glaubitz <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Andreas Larsson <[email protected]>
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 */
|