Commit | Line | Data |
---|---|---|
82706b8f KR |
1 | #ifdef __KERNEL__ |
2 | # ifdef CONFIG_SUPERH32 | |
3 | # include "unistd_32.h" | |
4 | # else | |
5 | # include "unistd_64.h" | |
6 | # endif | |
8bf6e1bc | 7 | |
9ef461ad | 8 | # define __ARCH_WANT_SYS_RT_SIGSUSPEND |
8bf6e1bc PM |
9 | # define __ARCH_WANT_IPC_PARSE_VERSION |
10 | # define __ARCH_WANT_OLD_READDIR | |
11 | # define __ARCH_WANT_OLD_STAT | |
12 | # define __ARCH_WANT_STAT64 | |
13 | # define __ARCH_WANT_SYS_ALARM | |
14 | # define __ARCH_WANT_SYS_GETHOSTNAME | |
15 | # define __ARCH_WANT_SYS_IPC | |
16 | # define __ARCH_WANT_SYS_PAUSE | |
17 | # define __ARCH_WANT_SYS_SGETMASK | |
18 | # define __ARCH_WANT_SYS_SIGNAL | |
19 | # define __ARCH_WANT_SYS_TIME | |
20 | # define __ARCH_WANT_SYS_UTIME | |
21 | # define __ARCH_WANT_SYS_WAITPID | |
22 | # define __ARCH_WANT_SYS_SOCKETCALL | |
23 | # define __ARCH_WANT_SYS_FADVISE64 | |
24 | # define __ARCH_WANT_SYS_GETPGRP | |
25 | # define __ARCH_WANT_SYS_LLSEEK | |
26 | # define __ARCH_WANT_SYS_NICE | |
27 | # define __ARCH_WANT_SYS_OLD_GETRLIMIT | |
28 | # define __ARCH_WANT_SYS_OLD_UNAME | |
29 | # define __ARCH_WANT_SYS_OLDUMOUNT | |
30 | # define __ARCH_WANT_SYS_SIGPENDING | |
31 | # define __ARCH_WANT_SYS_SIGPROCMASK | |
32 | # define __ARCH_WANT_SYS_RT_SIGACTION | |
33 | ||
34 | /* | |
35 | * "Conditional" syscalls | |
36 | * | |
37 | * What we want is __attribute__((weak,alias("sys_ni_syscall"))), | |
38 | * but it doesn't work on all toolchains, so we just do it by hand | |
39 | */ | |
40 | # define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall") | |
41 | ||
1b6cf817 | 42 | #else |
82706b8f KR |
43 | # ifdef __SH5__ |
44 | # include "unistd_64.h" | |
45 | # else | |
46 | # include "unistd_32.h" | |
47 | # endif | |
1da177e4 | 48 | #endif |