xref: /openbmc/linux/arch/mips/include/asm/unistd.h (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1384740dcSRalf Baechle /*
2384740dcSRalf Baechle  * This file is subject to the terms and conditions of the GNU General Public
3384740dcSRalf Baechle  * License.  See the file "COPYING" in the main directory of this archive
4384740dcSRalf Baechle  * for more details.
5384740dcSRalf Baechle  *
6384740dcSRalf Baechle  * Copyright (C) 1995, 96, 97, 98, 99, 2000 by Ralf Baechle
7384740dcSRalf Baechle  * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
8384740dcSRalf Baechle  *
9384740dcSRalf Baechle  * Changed system calls macros _syscall5 - _syscall7 to push args 5 to 7 onto
10384740dcSRalf Baechle  * the stack. Robin Farine for ACN S.A, Copyright (C) 1996 by ACN S.A
11384740dcSRalf Baechle  */
12384740dcSRalf Baechle #ifndef _ASM_UNISTD_H
13384740dcSRalf Baechle #define _ASM_UNISTD_H
14384740dcSRalf Baechle 
1561730c53SDavid Howells #include <uapi/asm/unistd.h>
1699bf73ebSFiroz Khan #include <asm/unistd_nr_n32.h>
1799bf73ebSFiroz Khan #include <asm/unistd_nr_n64.h>
1899bf73ebSFiroz Khan #include <asm/unistd_nr_o32.h>
19384740dcSRalf Baechle 
20faf243edSMasahiro Yamada #define __NR_N32_Linux	6000
21faf243edSMasahiro Yamada #define __NR_64_Linux	5000
22faf243edSMasahiro Yamada #define __NR_O32_Linux	4000
23faf243edSMasahiro Yamada 
241d7bf993SRalf Baechle #ifdef CONFIG_MIPS32_N32
251d7bf993SRalf Baechle #define NR_syscalls  (__NR_N32_Linux + __NR_N32_Linux_syscalls)
261d7bf993SRalf Baechle #elif defined(CONFIG_64BIT)
271d7bf993SRalf Baechle #define NR_syscalls  (__NR_64_Linux + __NR_64_Linux_syscalls)
281d7bf993SRalf Baechle #else
291d7bf993SRalf Baechle #define NR_syscalls  (__NR_O32_Linux + __NR_O32_Linux_syscalls)
301d7bf993SRalf Baechle #endif
31384740dcSRalf Baechle 
32384740dcSRalf Baechle #ifndef __ASSEMBLY__
33384740dcSRalf Baechle 
3482b355d1SArnd Bergmann #define __ARCH_WANT_NEW_STAT
35384740dcSRalf Baechle #define __ARCH_WANT_OLD_READDIR
36384740dcSRalf Baechle #define __ARCH_WANT_SYS_ALARM
37384740dcSRalf Baechle #define __ARCH_WANT_SYS_GETHOSTNAME
38baed7fc9SChristoph Hellwig #define __ARCH_WANT_SYS_IPC
39384740dcSRalf Baechle #define __ARCH_WANT_SYS_PAUSE
40384740dcSRalf Baechle #define __ARCH_WANT_SYS_UTIME
414faea239SArnd Bergmann #define __ARCH_WANT_SYS_UTIME32
42384740dcSRalf Baechle #define __ARCH_WANT_SYS_WAITPID
43384740dcSRalf Baechle #define __ARCH_WANT_SYS_SOCKETCALL
44384740dcSRalf Baechle #define __ARCH_WANT_SYS_GETPGRP
45384740dcSRalf Baechle #define __ARCH_WANT_SYS_NICE
465cacdb4aSChristoph Hellwig #define __ARCH_WANT_SYS_OLD_UNAME
47384740dcSRalf Baechle #define __ARCH_WANT_SYS_OLDUMOUNT
48384740dcSRalf Baechle #define __ARCH_WANT_SYS_SIGPENDING
49384740dcSRalf Baechle #define __ARCH_WANT_SYS_SIGPROCMASK
50384740dcSRalf Baechle # ifdef CONFIG_32BIT
51384740dcSRalf Baechle #  define __ARCH_WANT_STAT64
52d33c577cSArnd Bergmann #  define __ARCH_WANT_SYS_TIME32
53*f18ed30dSGuo Ren # else
54*f18ed30dSGuo Ren #  define __ARCH_WANT_COMPAT_STAT
55384740dcSRalf Baechle # endif
56384740dcSRalf Baechle # ifdef CONFIG_MIPS32_O32
57d33c577cSArnd Bergmann #  define __ARCH_WANT_SYS_TIME32
58384740dcSRalf Baechle # endif
5950150d2bSAl Viro #define __ARCH_WANT_SYS_FORK
6050150d2bSAl Viro #define __ARCH_WANT_SYS_CLONE
610671c5b8SPaul Burton #define __ARCH_WANT_SYS_CLONE3
62384740dcSRalf Baechle 
63384740dcSRalf Baechle /* whitelists for checksyscalls */
64384740dcSRalf Baechle #define __IGNORE_fadvise64_64
65384740dcSRalf Baechle 
66384740dcSRalf Baechle #endif /* !__ASSEMBLY__ */
67384740dcSRalf Baechle 
68384740dcSRalf Baechle #endif /* _ASM_UNISTD_H */
69