1 #ifdef __KERNEL__
2 # ifdef CONFIG_SUPERH32
3 
4 #  include "unistd_32.h"
5 #  define __ARCH_WANT_SYS_RT_SIGSUSPEND
6 
7 # else
8 #  include "unistd_64.h"
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 
44 #else
45 # ifdef __SH5__
46 #  include "unistd_64.h"
47 # else
48 #  include "unistd_32.h"
49 # endif
50 #endif
51