18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * This program is free software; you can redistribute it and/or modify 68c2ecf20Sopenharmony_ci * it under the terms of the GNU General Public License version 2 as 78c2ecf20Sopenharmony_ci * published by the Free Software Foundation. 88c2ecf20Sopenharmony_ci */ 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci/******** no-legacy-syscalls-ABI *******/ 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci/* 138c2ecf20Sopenharmony_ci * Non-typical guard macro to enable inclusion twice in ARCH sys.c 148c2ecf20Sopenharmony_ci * That is how the Generic syscall wrapper generator works 158c2ecf20Sopenharmony_ci */ 168c2ecf20Sopenharmony_ci#if !defined(_UAPI_ASM_ARC_UNISTD_H) || defined(__SYSCALL) 178c2ecf20Sopenharmony_ci#define _UAPI_ASM_ARC_UNISTD_H 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci#define __ARCH_WANT_RENAMEAT 208c2ecf20Sopenharmony_ci#define __ARCH_WANT_STAT64 218c2ecf20Sopenharmony_ci#define __ARCH_WANT_SET_GET_RLIMIT 228c2ecf20Sopenharmony_ci#define __ARCH_WANT_SYS_EXECVE 238c2ecf20Sopenharmony_ci#define __ARCH_WANT_SYS_CLONE 248c2ecf20Sopenharmony_ci#define __ARCH_WANT_SYS_CLONE3 258c2ecf20Sopenharmony_ci#define __ARCH_WANT_SYS_VFORK 268c2ecf20Sopenharmony_ci#define __ARCH_WANT_SYS_FORK 278c2ecf20Sopenharmony_ci#define __ARCH_WANT_TIME32_SYSCALLS 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci#define sys_mmap2 sys_mmap_pgoff 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci#include <asm-generic/unistd.h> 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ci#define NR_syscalls __NR_syscalls 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ci/* Generic syscall (fs/filesystems.c - lost in asm-generic/unistd.h */ 368c2ecf20Sopenharmony_ci#define __NR_sysfs (__NR_arch_specific_syscall + 3) 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ci/* ARC specific syscall */ 398c2ecf20Sopenharmony_ci#define __NR_cacheflush (__NR_arch_specific_syscall + 0) 408c2ecf20Sopenharmony_ci#define __NR_arc_settls (__NR_arch_specific_syscall + 1) 418c2ecf20Sopenharmony_ci#define __NR_arc_gettls (__NR_arch_specific_syscall + 2) 428c2ecf20Sopenharmony_ci#define __NR_arc_usr_cmpxchg (__NR_arch_specific_syscall + 4) 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_ci__SYSCALL(__NR_cacheflush, sys_cacheflush) 458c2ecf20Sopenharmony_ci__SYSCALL(__NR_arc_settls, sys_arc_settls) 468c2ecf20Sopenharmony_ci__SYSCALL(__NR_arc_gettls, sys_arc_gettls) 478c2ecf20Sopenharmony_ci__SYSCALL(__NR_arc_usr_cmpxchg, sys_arc_usr_cmpxchg) 488c2ecf20Sopenharmony_ci__SYSCALL(__NR_sysfs, sys_sysfs) 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_ci#undef __SYSCALL 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ci#endif 53