Commit | Line | Data |
---|---|---|
caab277b | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
7992d60d CM |
2 | /* |
3 | * Copyright (C) 2012 ARM Ltd. | |
7992d60d | 4 | */ |
1c1e4362 | 5 | #ifdef CONFIG_COMPAT |
f3d447a9 CM |
6 | #define __ARCH_WANT_COMPAT_STAT64 |
7 | #define __ARCH_WANT_SYS_GETHOSTNAME | |
8 | #define __ARCH_WANT_SYS_PAUSE | |
9 | #define __ARCH_WANT_SYS_GETPGRP | |
f3d447a9 CM |
10 | #define __ARCH_WANT_SYS_NICE |
11 | #define __ARCH_WANT_SYS_SIGPENDING | |
12 | #define __ARCH_WANT_SYS_SIGPROCMASK | |
f3d447a9 | 13 | #define __ARCH_WANT_COMPAT_SYS_SENDFILE |
4faea239 | 14 | #define __ARCH_WANT_SYS_UTIME32 |
9ac08002 AV |
15 | #define __ARCH_WANT_SYS_FORK |
16 | #define __ARCH_WANT_SYS_VFORK | |
f3e5c847 CM |
17 | |
18 | /* | |
19 | * Compat syscall numbers used by the AArch64 kernel. | |
20 | */ | |
21 | #define __NR_compat_restart_syscall 0 | |
a1ae65b2 AT |
22 | #define __NR_compat_exit 1 |
23 | #define __NR_compat_read 3 | |
24 | #define __NR_compat_write 4 | |
53c489e1 | 25 | #define __NR_compat_gettimeofday 78 |
f3e5c847 CM |
26 | #define __NR_compat_sigreturn 119 |
27 | #define __NR_compat_rt_sigreturn 173 | |
53c489e1 | 28 | #define __NR_compat_clock_gettime 263 |
3568b889 | 29 | #define __NR_compat_clock_getres 264 |
53c489e1 VF |
30 | #define __NR_compat_clock_gettime64 403 |
31 | #define __NR_compat_clock_getres_time64 406 | |
f3e5c847 CM |
32 | |
33 | /* | |
34 | * The following SVCs are ARM private. | |
35 | */ | |
36 | #define __ARM_NR_COMPAT_BASE 0x0f0000 | |
169113ec WD |
37 | #define __ARM_NR_compat_cacheflush (__ARM_NR_COMPAT_BASE + 2) |
38 | #define __ARM_NR_compat_set_tls (__ARM_NR_COMPAT_BASE + 5) | |
39 | #define __ARM_NR_COMPAT_END (__ARM_NR_COMPAT_BASE + 0x800) | |
f3e5c847 | 40 | |
9a2cef09 | 41 | #define __NR_compat_syscalls 439 |
7992d60d | 42 | #endif |
f3e5c847 | 43 | |
9ac08002 | 44 | #define __ARCH_WANT_SYS_CLONE |
0156411b CM |
45 | |
46 | #ifndef __COMPAT_SYSCALL_NR | |
4262a727 | 47 | #include <uapi/asm/unistd.h> |
0156411b | 48 | #endif |
055b1212 AT |
49 | |
50 | #define NR_syscalls (__NR_syscalls) |