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_VFORK
0025 #define __ARCH_WANT_SYS_FORK
0026 #define __ARCH_WANT_TIME32_SYSCALLS
0027 
0028 #define sys_mmap2 sys_mmap_pgoff
0029 
0030 #include <asm-generic/unistd.h>
0031 
0032 #define NR_syscalls __NR_syscalls
0033 
0034 /* Generic syscall (fs/filesystems.c - lost in asm-generic/unistd.h */
0035 #define __NR_sysfs      (__NR_arch_specific_syscall + 3)
0036 
0037 /* ARC specific syscall */
0038 #define __NR_cacheflush     (__NR_arch_specific_syscall + 0)
0039 #define __NR_arc_settls     (__NR_arch_specific_syscall + 1)
0040 #define __NR_arc_gettls     (__NR_arch_specific_syscall + 2)
0041 #define __NR_arc_usr_cmpxchg    (__NR_arch_specific_syscall + 4)
0042 
0043 __SYSCALL(__NR_cacheflush, sys_cacheflush)
0044 __SYSCALL(__NR_arc_settls, sys_arc_settls)
0045 __SYSCALL(__NR_arc_gettls, sys_arc_gettls)
0046 __SYSCALL(__NR_arc_usr_cmpxchg, sys_arc_usr_cmpxchg)
0047 __SYSCALL(__NR_sysfs, sys_sysfs)
0048 
0049 #undef __SYSCALL
0050 
0051 #endif