diff options
Diffstat (limited to 'arch/sh/include/asm/unistd.h')
-rw-r--r-- | arch/sh/include/asm/unistd.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/arch/sh/include/asm/unistd.h b/arch/sh/include/asm/unistd.h index 65be656ead7d..a42a5610a36a 100644 --- a/arch/sh/include/asm/unistd.h +++ b/arch/sh/include/asm/unistd.h | |||
@@ -1,9 +1,46 @@ | |||
1 | #ifdef __KERNEL__ | 1 | #ifdef __KERNEL__ |
2 | # ifdef CONFIG_SUPERH32 | 2 | # ifdef CONFIG_SUPERH32 |
3 | |||
3 | # include "unistd_32.h" | 4 | # include "unistd_32.h" |
5 | # define __ARCH_WANT_SYS_RT_SIGSUSPEND | ||
6 | |||
4 | # else | 7 | # else |
5 | # include "unistd_64.h" | 8 | # include "unistd_64.h" |
6 | # endif | 9 | # endif |
10 | |||
11 | # define __ARCH_WANT_IPC_PARSE_VERSION | ||
12 | # define __ARCH_WANT_OLD_READDIR | ||
13 | # define __ARCH_WANT_OLD_STAT | ||
14 | # define __ARCH_WANT_STAT64 | ||
15 | # define __ARCH_WANT_SYS_ALARM | ||
16 | # define __ARCH_WANT_SYS_GETHOSTNAME | ||
17 | # define __ARCH_WANT_SYS_IPC | ||
18 | # define __ARCH_WANT_SYS_PAUSE | ||
19 | # define __ARCH_WANT_SYS_SGETMASK | ||
20 | # define __ARCH_WANT_SYS_SIGNAL | ||
21 | # define __ARCH_WANT_SYS_TIME | ||
22 | # define __ARCH_WANT_SYS_UTIME | ||
23 | # define __ARCH_WANT_SYS_WAITPID | ||
24 | # define __ARCH_WANT_SYS_SOCKETCALL | ||
25 | # define __ARCH_WANT_SYS_FADVISE64 | ||
26 | # define __ARCH_WANT_SYS_GETPGRP | ||
27 | # define __ARCH_WANT_SYS_LLSEEK | ||
28 | # define __ARCH_WANT_SYS_NICE | ||
29 | # define __ARCH_WANT_SYS_OLD_GETRLIMIT | ||
30 | # define __ARCH_WANT_SYS_OLD_UNAME | ||
31 | # define __ARCH_WANT_SYS_OLDUMOUNT | ||
32 | # define __ARCH_WANT_SYS_SIGPENDING | ||
33 | # define __ARCH_WANT_SYS_SIGPROCMASK | ||
34 | # define __ARCH_WANT_SYS_RT_SIGACTION | ||
35 | |||
36 | /* | ||
37 | * "Conditional" syscalls | ||
38 | * | ||
39 | * What we want is __attribute__((weak,alias("sys_ni_syscall"))), | ||
40 | * but it doesn't work on all toolchains, so we just do it by hand | ||
41 | */ | ||
42 | # define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall") | ||
43 | |||
7 | #else | 44 | #else |
8 | # ifdef __SH5__ | 45 | # ifdef __SH5__ |
9 | # include "unistd_64.h" | 46 | # include "unistd_64.h" |