xref: /OK3568_Linux_fs/kernel/arch/openrisc/include/uapi/asm/unistd.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * OpenRISC Linux
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * Linux architectural port borrowing liberally from similar works of
6*4882a593Smuzhiyun  * others.  All original copyrights apply as per the original source
7*4882a593Smuzhiyun  * declaration.
8*4882a593Smuzhiyun  *
9*4882a593Smuzhiyun  * OpenRISC implementation:
10*4882a593Smuzhiyun  * Copyright (C) 2003 Matjaz Breskvar <phoenix@bsemi.com>
11*4882a593Smuzhiyun  * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se>
12*4882a593Smuzhiyun  * et al.
13*4882a593Smuzhiyun  *
14*4882a593Smuzhiyun  * This program is free software; you can redistribute it and/or modify
15*4882a593Smuzhiyun  * it under the terms of the GNU General Public License as published by
16*4882a593Smuzhiyun  * the Free Software Foundation; either version 2 of the License, or
17*4882a593Smuzhiyun  * (at your option) any later version.
18*4882a593Smuzhiyun  */
19*4882a593Smuzhiyun 
20*4882a593Smuzhiyun #define sys_mmap2 sys_mmap_pgoff
21*4882a593Smuzhiyun 
22*4882a593Smuzhiyun #define __ARCH_WANT_RENAMEAT
23*4882a593Smuzhiyun #define __ARCH_WANT_STAT64
24*4882a593Smuzhiyun #define __ARCH_WANT_SET_GET_RLIMIT
25*4882a593Smuzhiyun #define __ARCH_WANT_SYS_FORK
26*4882a593Smuzhiyun #define __ARCH_WANT_SYS_CLONE
27*4882a593Smuzhiyun #define __ARCH_WANT_SYS_CLONE3
28*4882a593Smuzhiyun #define __ARCH_WANT_TIME32_SYSCALLS
29*4882a593Smuzhiyun 
30*4882a593Smuzhiyun #include <asm-generic/unistd.h>
31*4882a593Smuzhiyun 
32*4882a593Smuzhiyun #define __NR_or1k_atomic __NR_arch_specific_syscall
33*4882a593Smuzhiyun __SYSCALL(__NR_or1k_atomic, sys_or1k_atomic)
34