linux-yocto/arch/nios2/include/asm/syscalls.h
Simon Schuster c6ac444ff2 nios2: implement architecture-specific portion of sys_clone3
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>
2025-09-01 15:31:34 +02:00

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 */