spi-topcliff-pch: add recovery processing in case wait-event timeout
[zen-stable.git] / arch / x86 / include / asm / unistd.h
blob21f77b89e47a6aeea5ab00c01c28db2d54f0520b
1 #ifndef _ASM_X86_UNISTD_H
2 #define _ASM_X86_UNISTD_H 1
4 #ifdef __KERNEL__
5 # ifdef CONFIG_X86_32
7 # include <asm/unistd_32.h>
8 # define __ARCH_WANT_IPC_PARSE_VERSION
9 # define __ARCH_WANT_STAT64
10 # define __ARCH_WANT_SYS_IPC
11 # define __ARCH_WANT_SYS_OLD_MMAP
12 # define __ARCH_WANT_SYS_OLD_SELECT
14 # else
16 # include <asm/unistd_64.h>
17 # define __ARCH_WANT_COMPAT_SYS_TIME
19 # endif
21 # define __ARCH_WANT_OLD_READDIR
22 # define __ARCH_WANT_OLD_STAT
23 # define __ARCH_WANT_SYS_ALARM
24 # define __ARCH_WANT_SYS_FADVISE64
25 # define __ARCH_WANT_SYS_GETHOSTNAME
26 # define __ARCH_WANT_SYS_GETPGRP
27 # define __ARCH_WANT_SYS_LLSEEK
28 # define __ARCH_WANT_SYS_NICE
29 # define __ARCH_WANT_SYS_OLDUMOUNT
30 # define __ARCH_WANT_SYS_OLD_GETRLIMIT
31 # define __ARCH_WANT_SYS_OLD_UNAME
32 # define __ARCH_WANT_SYS_PAUSE
33 # define __ARCH_WANT_SYS_RT_SIGACTION
34 # define __ARCH_WANT_SYS_RT_SIGSUSPEND
35 # define __ARCH_WANT_SYS_SGETMASK
36 # define __ARCH_WANT_SYS_SIGNAL
37 # define __ARCH_WANT_SYS_SIGPENDING
38 # define __ARCH_WANT_SYS_SIGPROCMASK
39 # define __ARCH_WANT_SYS_SOCKETCALL
40 # define __ARCH_WANT_SYS_TIME
41 # define __ARCH_WANT_SYS_UTIME
42 # define __ARCH_WANT_SYS_WAITPID
45 * "Conditional" syscalls
47 * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
48 * but it doesn't work on all toolchains, so we just do it by hand
50 # define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")
52 #else
53 # ifdef __i386__
54 # include <asm/unistd_32.h>
55 # else
56 # include <asm/unistd_64.h>
57 # endif
58 #endif
60 #endif /* _ASM_X86_UNISTD_H */