Khem Raj | 82706b8 | 2008-07-03 19:02:41 +0900 | [diff] [blame] | 1 | # ifdef CONFIG_SUPERH32 |
David Howells | a1ce392 | 2012-10-02 18:01:25 +0100 | [diff] [blame] | 2 | # include <asm/unistd_32.h> |
Khem Raj | 82706b8 | 2008-07-03 19:02:41 +0900 | [diff] [blame] | 3 | # else |
David Howells | a1ce392 | 2012-10-02 18:01:25 +0100 | [diff] [blame] | 4 | # include <asm/unistd_64.h> |
Khem Raj | 82706b8 | 2008-07-03 19:02:41 +0900 | [diff] [blame] | 5 | # endif |
Paul Mundt | 8bf6e1b | 2012-03-28 17:10:05 +0900 | [diff] [blame] | 6 | |
Al Viro | 9ef461a | 2012-04-22 01:16:34 -0400 | [diff] [blame] | 7 | # define __ARCH_WANT_SYS_RT_SIGSUSPEND |
Paul Mundt | 8bf6e1b | 2012-03-28 17:10:05 +0900 | [diff] [blame] | 8 | # define __ARCH_WANT_OLD_READDIR |
| 9 | # define __ARCH_WANT_OLD_STAT |
| 10 | # define __ARCH_WANT_STAT64 |
| 11 | # define __ARCH_WANT_SYS_ALARM |
| 12 | # define __ARCH_WANT_SYS_GETHOSTNAME |
| 13 | # define __ARCH_WANT_SYS_IPC |
| 14 | # define __ARCH_WANT_SYS_PAUSE |
| 15 | # define __ARCH_WANT_SYS_SGETMASK |
| 16 | # define __ARCH_WANT_SYS_SIGNAL |
| 17 | # define __ARCH_WANT_SYS_TIME |
| 18 | # define __ARCH_WANT_SYS_UTIME |
| 19 | # define __ARCH_WANT_SYS_WAITPID |
| 20 | # define __ARCH_WANT_SYS_SOCKETCALL |
| 21 | # define __ARCH_WANT_SYS_FADVISE64 |
| 22 | # define __ARCH_WANT_SYS_GETPGRP |
| 23 | # define __ARCH_WANT_SYS_LLSEEK |
| 24 | # define __ARCH_WANT_SYS_NICE |
| 25 | # define __ARCH_WANT_SYS_OLD_GETRLIMIT |
| 26 | # define __ARCH_WANT_SYS_OLD_UNAME |
| 27 | # define __ARCH_WANT_SYS_OLDUMOUNT |
| 28 | # define __ARCH_WANT_SYS_SIGPENDING |
| 29 | # define __ARCH_WANT_SYS_SIGPROCMASK |
| 30 | # define __ARCH_WANT_SYS_RT_SIGACTION |
Al Viro | 0ad9513 | 2012-10-27 00:13:51 -0400 | [diff] [blame] | 31 | # define __ARCH_WANT_SYS_FORK |
| 32 | # define __ARCH_WANT_SYS_VFORK |
| 33 | # define __ARCH_WANT_SYS_CLONE |
Paul Mundt | 8bf6e1b | 2012-03-28 17:10:05 +0900 | [diff] [blame] | 34 | |
| 35 | /* |
| 36 | * "Conditional" syscalls |
| 37 | * |
| 38 | * What we want is __attribute__((weak,alias("sys_ni_syscall"))), |
| 39 | * but it doesn't work on all toolchains, so we just do it by hand |
| 40 | */ |
| 41 | # define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall") |
| 42 | |
David Howells | 0a9426d | 2012-10-09 09:47:37 +0100 | [diff] [blame] | 43 | #include <uapi/asm/unistd.h> |