| 1 |
/* |
| 2 |
* This file is subject to the terms and conditions of the GNU General Public |
| 3 |
* License. See the file "COPYING" in the main directory of this archive |
| 4 |
* for more details. |
| 5 |
* |
| 6 |
* Copyright (C) 1995, 96, 97, 98, 99, 2000 by Ralf Baechle |
| 7 |
* Copyright (C) 1999, 2000 Silicon Graphics, Inc. |
| 8 |
* |
| 9 |
* Changed system calls macros _syscall5 - _syscall7 to push args 5 to 7 onto |
| 10 |
* the stack. Robin Farine for ACN S.A, Copyright (C) 1996 by ACN S.A |
| 11 |
*/ |
| 12 |
#ifndef _ASM_UNISTD_H |
| 13 |
#define _ASM_UNISTD_H |
| 14 |
|
| 15 |
#include <uapi/asm/unistd.h> |
| 16 |
#include <asm/unistd_nr_n32.h> |
| 17 |
#include <asm/unistd_nr_n64.h> |
| 18 |
#include <asm/unistd_nr_o32.h> |
| 19 |
|
| 20 |
#define __NR_N32_Linux 6000 |
| 21 |
#define __NR_64_Linux 5000 |
| 22 |
#define __NR_O32_Linux 4000 |
| 23 |
|
| 24 |
#ifdef CONFIG_MIPS32_N32 |
| 25 |
#define NR_syscalls (__NR_N32_Linux + __NR_N32_Linux_syscalls) |
| 26 |
#elif defined(CONFIG_64BIT) |
| 27 |
#define NR_syscalls (__NR_64_Linux + __NR_64_Linux_syscalls) |
| 28 |
#else |
| 29 |
#define NR_syscalls (__NR_O32_Linux + __NR_O32_Linux_syscalls) |
| 30 |
#endif |
| 31 |
|
| 32 |
#ifndef __ASSEMBLER__ |
| 33 |
|
| 34 |
#define __ARCH_WANT_NEW_STAT |
| 35 |
#define __ARCH_WANT_OLD_READDIR |
| 36 |
#define __ARCH_WANT_SYS_ALARM |
| 37 |
#define __ARCH_WANT_SYS_GETHOSTNAME |
| 38 |
#define __ARCH_WANT_SYS_IPC |
| 39 |
#define __ARCH_WANT_SYS_PAUSE |
| 40 |
#define __ARCH_WANT_SYS_UTIME |
| 41 |
#define __ARCH_WANT_SYS_UTIME32 |
| 42 |
#define __ARCH_WANT_SYS_WAITPID |
| 43 |
#define __ARCH_WANT_SYS_SOCKETCALL |
| 44 |
#define __ARCH_WANT_SYS_GETPGRP |
| 45 |
#define __ARCH_WANT_SYS_NICE |
| 46 |
#define __ARCH_WANT_SYS_OLD_UNAME |
| 47 |
#define __ARCH_WANT_SYS_OLDUMOUNT |
| 48 |
#define __ARCH_WANT_SYS_SIGPENDING |
| 49 |
#define __ARCH_WANT_SYS_SIGPROCMASK |
| 50 |
# ifdef CONFIG_32BIT |
| 51 |
# define __ARCH_WANT_STAT64 |
| 52 |
# define __ARCH_WANT_SYS_TIME32 |
| 53 |
# else |
| 54 |
# define __ARCH_WANT_COMPAT_STAT |
| 55 |
# endif |
| 56 |
# ifdef CONFIG_MIPS32_O32 |
| 57 |
# define __ARCH_WANT_SYS_TIME32 |
| 58 |
# endif |
| 59 |
#define __ARCH_WANT_SYS_FORK |
| 60 |
#define __ARCH_WANT_SYS_CLONE |
| 61 |
|
| 62 |
/* whitelists for checksyscalls */ |
| 63 |
#define __IGNORE_fadvise64_64 |
| 64 |
|
| 65 |
#endif /* !__ASSEMBLER__ */ |
| 66 |
|
| 67 |
#endif /* _ASM_UNISTD_H */ |