Catalin Marinas | 7992d60 | 2012-03-05 11:49:31 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2012 ARM Ltd. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 as |
| 6 | * published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | * |
| 13 | * You should have received a copy of the GNU General Public License |
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ |
David Howells | 1c1e436 | 2012-10-04 12:10:18 +0100 | [diff] [blame] | 16 | #ifdef CONFIG_COMPAT |
Heiko Carstens | 0473c9b | 2014-03-03 10:44:03 +0100 | [diff] [blame] | 17 | #define __ARCH_WANT_COMPAT_SYS_GETDENTS64 |
Catalin Marinas | f3d447a | 2012-10-10 15:27:04 +0100 | [diff] [blame] | 18 | #define __ARCH_WANT_COMPAT_STAT64 |
| 19 | #define __ARCH_WANT_SYS_GETHOSTNAME |
| 20 | #define __ARCH_WANT_SYS_PAUSE |
| 21 | #define __ARCH_WANT_SYS_GETPGRP |
| 22 | #define __ARCH_WANT_SYS_LLSEEK |
| 23 | #define __ARCH_WANT_SYS_NICE |
| 24 | #define __ARCH_WANT_SYS_SIGPENDING |
| 25 | #define __ARCH_WANT_SYS_SIGPROCMASK |
Catalin Marinas | f3d447a | 2012-10-10 15:27:04 +0100 | [diff] [blame] | 26 | #define __ARCH_WANT_COMPAT_SYS_SENDFILE |
Al Viro | 9ac0800 | 2012-10-21 15:56:52 -0400 | [diff] [blame] | 27 | #define __ARCH_WANT_SYS_FORK |
| 28 | #define __ARCH_WANT_SYS_VFORK |
Catalin Marinas | f3e5c84 | 2014-01-30 17:56:56 +0000 | [diff] [blame] | 29 | |
| 30 | /* |
| 31 | * Compat syscall numbers used by the AArch64 kernel. |
| 32 | */ |
| 33 | #define __NR_compat_restart_syscall 0 |
AKASHI Takahiro | a1ae65b | 2014-11-28 05:26:39 +0000 | [diff] [blame] | 34 | #define __NR_compat_exit 1 |
| 35 | #define __NR_compat_read 3 |
| 36 | #define __NR_compat_write 4 |
Catalin Marinas | f3e5c84 | 2014-01-30 17:56:56 +0000 | [diff] [blame] | 37 | #define __NR_compat_sigreturn 119 |
| 38 | #define __NR_compat_rt_sigreturn 173 |
| 39 | |
| 40 | /* |
| 41 | * The following SVCs are ARM private. |
| 42 | */ |
| 43 | #define __ARM_NR_COMPAT_BASE 0x0f0000 |
| 44 | #define __ARM_NR_compat_cacheflush (__ARM_NR_COMPAT_BASE+2) |
| 45 | #define __ARM_NR_compat_set_tls (__ARM_NR_COMPAT_BASE+5) |
| 46 | |
Will Deacon | eb93ce2 | 2015-10-14 13:20:36 +0100 | [diff] [blame] | 47 | #define __NR_compat_syscalls 390 |
Catalin Marinas | 7992d60 | 2012-03-05 11:49:31 +0000 | [diff] [blame] | 48 | #endif |
Catalin Marinas | f3e5c84 | 2014-01-30 17:56:56 +0000 | [diff] [blame] | 49 | |
Al Viro | 9ac0800 | 2012-10-21 15:56:52 -0400 | [diff] [blame] | 50 | #define __ARCH_WANT_SYS_CLONE |
Catalin Marinas | 0156411 | 2015-01-06 16:42:32 +0000 | [diff] [blame] | 51 | |
| 52 | #ifndef __COMPAT_SYSCALL_NR |
David Howells | 4262a72 | 2012-10-11 11:05:13 +0100 | [diff] [blame] | 53 | #include <uapi/asm/unistd.h> |
Catalin Marinas | 0156411 | 2015-01-06 16:42:32 +0000 | [diff] [blame] | 54 | #endif |
AKASHI Takahiro | 055b121 | 2014-04-30 10:54:36 +0100 | [diff] [blame] | 55 | |
| 56 | #define NR_syscalls (__NR_syscalls) |