xref: /linux/arch/arm64/include/asm/unistd.h (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Copyright (C) 2012 ARM Ltd.
4  */
5 #ifdef CONFIG_COMPAT
6 #define __ARCH_WANT_COMPAT_STAT
7 #define __ARCH_WANT_COMPAT_STAT64
8 #define __ARCH_WANT_SYS_GETHOSTNAME
9 #define __ARCH_WANT_SYS_PAUSE
10 #define __ARCH_WANT_SYS_GETPGRP
11 #define __ARCH_WANT_SYS_NICE
12 #define __ARCH_WANT_SYS_SIGPENDING
13 #define __ARCH_WANT_SYS_SIGPROCMASK
14 #define __ARCH_WANT_COMPAT_SYS_SENDFILE
15 #define __ARCH_WANT_SYS_UTIME32
16 #define __ARCH_WANT_SYS_FORK
17 #define __ARCH_WANT_SYS_VFORK
18 
19 /*
20  * The following SVCs are ARM private.
21  */
22 #define __ARM_NR_COMPAT_BASE		0x0f0000
23 #define __ARM_NR_compat_cacheflush	(__ARM_NR_COMPAT_BASE + 2)
24 #define __ARM_NR_compat_set_tls		(__ARM_NR_COMPAT_BASE + 5)
25 #define __ARM_NR_COMPAT_END		(__ARM_NR_COMPAT_BASE + 0x800)
26 #endif
27 
28 #define __ARCH_WANT_SYS_CLONE
29 #define __ARCH_WANT_NEW_STAT
30 
31 #include <asm/unistd_64.h>
32 
33 #define NR_syscalls (__NR_syscalls)
34