aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/include/asm/unistd.h
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2014-01-30 12:56:56 -0500
committerCatalin Marinas <catalin.marinas@arm.com>2014-07-10 06:02:40 -0400
commitf3e5c847ec3d12b4de7898662024ee25622b25d7 (patch)
tree36ae693ecd8340d13c9aae1a6295e9046ab688d7 /arch/arm64/include/asm/unistd.h
parent6c81fe7925cc4c42de49e17be21eb86d1173c3a7 (diff)
arm64: Add __NR_* definitions for compat syscalls
This patch adds __NR_* definitions to asm/unistd32.h, moves the __NR_compat_* definitions to asm/unistd.h and removes all the explicit unistd32.h includes apart from the one building the compat syscall table. The aim is to have the compat __NR_* definitions available but without colliding with the native syscall definitions (required by lib/compat_audit.c to avoid duplicating the audit header files between native and compat). Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/unistd.h')
-rw-r--r--arch/arm64/include/asm/unistd.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/unistd.h b/arch/arm64/include/asm/unistd.h
index e5f47df00c24..4bc95d27e063 100644
--- a/arch/arm64/include/asm/unistd.h
+++ b/arch/arm64/include/asm/unistd.h
@@ -26,7 +26,24 @@
26#define __ARCH_WANT_COMPAT_SYS_SENDFILE 26#define __ARCH_WANT_COMPAT_SYS_SENDFILE
27#define __ARCH_WANT_SYS_FORK 27#define __ARCH_WANT_SYS_FORK
28#define __ARCH_WANT_SYS_VFORK 28#define __ARCH_WANT_SYS_VFORK
29
30/*
31 * Compat syscall numbers used by the AArch64 kernel.
32 */
33#define __NR_compat_restart_syscall 0
34#define __NR_compat_sigreturn 119
35#define __NR_compat_rt_sigreturn 173
36
37/*
38 * The following SVCs are ARM private.
39 */
40#define __ARM_NR_COMPAT_BASE 0x0f0000
41#define __ARM_NR_compat_cacheflush (__ARM_NR_COMPAT_BASE+2)
42#define __ARM_NR_compat_set_tls (__ARM_NR_COMPAT_BASE+5)
43
44#define __NR_compat_syscalls 383
29#endif 45#endif
46
30#define __ARCH_WANT_SYS_CLONE 47#define __ARCH_WANT_SYS_CLONE
31#include <uapi/asm/unistd.h> 48#include <uapi/asm/unistd.h>
32 49