18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public
38c2ecf20Sopenharmony_ci * License.  See the file "COPYING" in the main directory of this archive
48c2ecf20Sopenharmony_ci * for more details.
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci * Copyright (C) 1995, 96, 97, 98, 99, 2000 by Ralf Baechle
78c2ecf20Sopenharmony_ci * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
88c2ecf20Sopenharmony_ci *
98c2ecf20Sopenharmony_ci * Changed system calls macros _syscall5 - _syscall7 to push args 5 to 7 onto
108c2ecf20Sopenharmony_ci * the stack. Robin Farine for ACN S.A, Copyright (C) 1996 by ACN S.A
118c2ecf20Sopenharmony_ci */
128c2ecf20Sopenharmony_ci#ifndef _ASM_UNISTD_H
138c2ecf20Sopenharmony_ci#define _ASM_UNISTD_H
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#include <uapi/asm/unistd.h>
168c2ecf20Sopenharmony_ci#include <asm/unistd_nr_n32.h>
178c2ecf20Sopenharmony_ci#include <asm/unistd_nr_n64.h>
188c2ecf20Sopenharmony_ci#include <asm/unistd_nr_o32.h>
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci#ifdef CONFIG_MIPS32_N32
218c2ecf20Sopenharmony_ci#define NR_syscalls  (__NR_N32_Linux + __NR_N32_Linux_syscalls)
228c2ecf20Sopenharmony_ci#elif defined(CONFIG_64BIT)
238c2ecf20Sopenharmony_ci#define NR_syscalls  (__NR_64_Linux + __NR_64_Linux_syscalls)
248c2ecf20Sopenharmony_ci#else
258c2ecf20Sopenharmony_ci#define NR_syscalls  (__NR_O32_Linux + __NR_O32_Linux_syscalls)
268c2ecf20Sopenharmony_ci#endif
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci#ifndef __ASSEMBLY__
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci#define __ARCH_WANT_NEW_STAT
318c2ecf20Sopenharmony_ci#define __ARCH_WANT_OLD_READDIR
328c2ecf20Sopenharmony_ci#define __ARCH_WANT_SYS_ALARM
338c2ecf20Sopenharmony_ci#define __ARCH_WANT_SYS_GETHOSTNAME
348c2ecf20Sopenharmony_ci#define __ARCH_WANT_SYS_IPC
358c2ecf20Sopenharmony_ci#define __ARCH_WANT_SYS_PAUSE
368c2ecf20Sopenharmony_ci#define __ARCH_WANT_SYS_UTIME
378c2ecf20Sopenharmony_ci#define __ARCH_WANT_SYS_UTIME32
388c2ecf20Sopenharmony_ci#define __ARCH_WANT_SYS_WAITPID
398c2ecf20Sopenharmony_ci#define __ARCH_WANT_SYS_SOCKETCALL
408c2ecf20Sopenharmony_ci#define __ARCH_WANT_SYS_GETPGRP
418c2ecf20Sopenharmony_ci#define __ARCH_WANT_SYS_NICE
428c2ecf20Sopenharmony_ci#define __ARCH_WANT_SYS_OLD_UNAME
438c2ecf20Sopenharmony_ci#define __ARCH_WANT_SYS_OLDUMOUNT
448c2ecf20Sopenharmony_ci#define __ARCH_WANT_SYS_SIGPENDING
458c2ecf20Sopenharmony_ci#define __ARCH_WANT_SYS_SIGPROCMASK
468c2ecf20Sopenharmony_ci# ifdef CONFIG_32BIT
478c2ecf20Sopenharmony_ci#  define __ARCH_WANT_STAT64
488c2ecf20Sopenharmony_ci#  define __ARCH_WANT_SYS_TIME32
498c2ecf20Sopenharmony_ci# endif
508c2ecf20Sopenharmony_ci# ifdef CONFIG_MIPS32_O32
518c2ecf20Sopenharmony_ci#  define __ARCH_WANT_SYS_TIME32
528c2ecf20Sopenharmony_ci# endif
538c2ecf20Sopenharmony_ci#define __ARCH_WANT_SYS_FORK
548c2ecf20Sopenharmony_ci#define __ARCH_WANT_SYS_CLONE
558c2ecf20Sopenharmony_ci#define __ARCH_WANT_SYS_CLONE3
568c2ecf20Sopenharmony_ci
578c2ecf20Sopenharmony_ci/* whitelists for checksyscalls */
588c2ecf20Sopenharmony_ci#define __IGNORE_fadvise64_64
598c2ecf20Sopenharmony_ci
608c2ecf20Sopenharmony_ci#endif /* !__ASSEMBLY__ */
618c2ecf20Sopenharmony_ci
628c2ecf20Sopenharmony_ci#endif /* _ASM_UNISTD_H */
63