Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 /*
0003  * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
0004  *
0005  * This program is free software; you can redistribute it and/or modify
0006  * it under the terms of the GNU General Public License version 2 as
0007  * published by the Free Software Foundation.
0008  */
0009 
0010 /******** no-legacy-syscalls-ABI *******/
0011 
0012 /*
0013  * Non-typical guard macro to enable inclusion twice in ARCH sys.c
0014  * That is how the Generic syscall wrapper generator works
0015  */
0016 #if !defined(_UAPI_ASM_ARC_UNISTD_H) || defined(__SYSCALL)
0017 #define _UAPI_ASM_ARC_UNISTD_H
0018 
0019 #define __ARCH_WANT_RENAMEAT
0020 #define __ARCH_WANT_STAT64
0021 #define __ARCH_WANT_SET_GET_RLIMIT
0022 #define __ARCH_WANT_SYS_EXECVE
0023 #define __ARCH_WANT_SYS_CLONE
0024 #define __ARCH_WANT_SYS_CLONE3
0025 #define __ARCH_WANT_SYS_VFORK
0026 #define __ARCH_WANT_SYS_FORK
0027 #define __ARCH_WANT_TIME32_SYSCALLS
0028 
0029 #define sys_mmap2 sys_mmap_pgoff
0030 
0031 #include <asm-generic/unistd.h>
0032 
0033 #define NR_syscalls __NR_syscalls
0034 
0035 /* Generic syscall (fs/filesystems.c - lost in asm-generic/unistd.h */
0036 #define __NR_sysfs      (__NR_arch_specific_syscall + 3)
0037 
0038 /* ARC specific syscall */
0039 #define __NR_cacheflush     (__NR_arch_specific_syscall + 0)
0040 #define __NR_arc_settls     (__NR_arch_specific_syscall + 1)
0041 #define __NR_arc_gettls     (__NR_arch_specific_syscall + 2)
0042 #define __NR_arc_usr_cmpxchg    (__NR_arch_specific_syscall + 4)
0043 
0044 __SYSCALL(__NR_cacheflush, sys_cacheflush)
0045 __SYSCALL(__NR_arc_settls, sys_arc_settls)
0046 __SYSCALL(__NR_arc_gettls, sys_arc_gettls)
0047 __SYSCALL(__NR_arc_usr_cmpxchg, sys_arc_usr_cmpxchg)
0048 __SYSCALL(__NR_sysfs, sys_sysfs)
0049 
0050 #undef __SYSCALL
0051 
0052 #endif