Khem Raj | 82706b8 | 2008-07-03 19:02:41 +0900 | [diff] [blame] | 1 | #ifdef __KERNEL__ |
| 2 | # ifdef CONFIG_SUPERH32 |
Paul Mundt | 8bf6e1b | 2012-03-28 17:10:05 +0900 | [diff] [blame] | 3 | |
Khem Raj | 82706b8 | 2008-07-03 19:02:41 +0900 | [diff] [blame] | 4 | # include "unistd_32.h" |
Paul Mundt | 8bf6e1b | 2012-03-28 17:10:05 +0900 | [diff] [blame] | 5 | # define __ARCH_WANT_SYS_RT_SIGSUSPEND |
| 6 | |
Khem Raj | 82706b8 | 2008-07-03 19:02:41 +0900 | [diff] [blame] | 7 | # else |
| 8 | # include "unistd_64.h" |
| 9 | # endif |
Paul Mundt | 8bf6e1b | 2012-03-28 17:10:05 +0900 | [diff] [blame] | 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 | |
Paul Mundt | 1b6cf81 | 2007-11-11 17:46:49 +0900 | [diff] [blame] | 44 | #else |
Khem Raj | 82706b8 | 2008-07-03 19:02:41 +0900 | [diff] [blame] | 45 | # ifdef __SH5__ |
| 46 | # include "unistd_64.h" |
| 47 | # else |
| 48 | # include "unistd_32.h" |
| 49 | # endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 50 | #endif |