aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/unistd.h
diff options
context:
space:
mode:
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2012-01-27 11:14:02 -0500
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2012-01-27 11:14:02 -0500
commit6c02b7b1610f873888af20f291c07730889ff0f9 (patch)
tree1b33e6642cc81605b8d37c0bda0abff0ba64fa2d /arch/x86/include/asm/unistd.h
parent7a7546b377bdaa25ac77f33d9433c59f259b9688 (diff)
parentdcd6c92267155e70a94b3927bce681ce74b80d1f (diff)
Merge commit 'v3.3-rc1' into stable/for-linus-fixes-3.3
* commit 'v3.3-rc1': (9775 commits) Linux 3.3-rc1 x86, syscall: Need __ARCH_WANT_SYS_IPC for 32 bits qnx4: don't leak ->BitMap on late failure exits qnx4: reduce the insane nesting in qnx4_checkroot() qnx4: di_fname is an array, for crying out loud... KEYS: Permit key_serial() to be called with a const key pointer keys: fix user_defined key sparse messages ima: fix cred sparse warning uml: fix compile for x86-64 MPILIB: Add a missing ENOMEM check tpm: fix (ACPI S3) suspend regression nvme: fix merge error due to change of 'make_request_fn' fn type xen: using EXPORT_SYMBOL requires including export.h gpio: tps65910: Use correct offset for gpio initialization acpi/apei/einj: Add extensions to EINJ from rev 5.0 of acpi spec intel_idle: Split up and provide per CPU initialization func ACPI processor: Remove unneeded variable passed by acpi_processor_hotadd_init V2 tg3: Fix single-vector MSI-X code openvswitch: Fix multipart datapath dumps. ipv6: fix per device IP snmp counters ...
Diffstat (limited to 'arch/x86/include/asm/unistd.h')
-rw-r--r--arch/x86/include/asm/unistd.h55
1 files changed, 51 insertions, 4 deletions
diff --git a/arch/x86/include/asm/unistd.h b/arch/x86/include/asm/unistd.h
index 2a58ed3e51d8..21f77b89e47a 100644
--- a/arch/x86/include/asm/unistd.h
+++ b/arch/x86/include/asm/unistd.h
@@ -1,13 +1,60 @@
1#ifndef _ASM_X86_UNISTD_H
2#define _ASM_X86_UNISTD_H 1
3
1#ifdef __KERNEL__ 4#ifdef __KERNEL__
2# ifdef CONFIG_X86_32 5# ifdef CONFIG_X86_32
3# include "unistd_32.h" 6
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
13
4# else 14# else
5# include "unistd_64.h" 15
16# include <asm/unistd_64.h>
17# define __ARCH_WANT_COMPAT_SYS_TIME
18
6# endif 19# endif
20
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
43
44/*
45 * "Conditional" syscalls
46 *
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
49 */
50# define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")
51
7#else 52#else
8# ifdef __i386__ 53# ifdef __i386__
9# include "unistd_32.h" 54# include <asm/unistd_32.h>
10# else 55# else
11# include "unistd_64.h" 56# include <asm/unistd_64.h>
12# endif 57# endif
13#endif 58#endif
59
60#endif /* _ASM_X86_UNISTD_H */