mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2026-01-27 12:47:24 +01:00
This commit adds the sys_clone3 entry point for nios2. An architecture-specific wrapper (__sys_clone3) is required to save and restore additional registers to the kernel stack via SAVE_SWITCH_STACK and RESTORE_SWITCH_STACK. Signed-off-by: Simon Schuster <schuster.simon@siemens-energy.com> Link: https://lore.kernel.org/20250901-nios2-implement-clone3-v2-4-53fcf5577d57@siemens-energy.com Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Christian Brauner <brauner@kernel.org>
15 lines
404 B
C
15 lines
404 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright Altera Corporation (C) 2013. All rights reserved
|
|
*/
|
|
#ifndef __ASM_NIOS2_SYSCALLS_H
|
|
#define __ASM_NIOS2_SYSCALLS_H
|
|
|
|
int sys_cacheflush(unsigned long addr, unsigned long len,
|
|
unsigned int op);
|
|
asmlinkage long __sys_clone3(struct clone_args __user *uargs, size_t size);
|
|
|
|
#include <asm-generic/syscalls.h>
|
|
|
|
#endif /* __ASM_NIOS2_SYSCALLS_H */
|