2019-06-03 05:44:50 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2012-03-05 11:49:31 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2012 ARM Ltd.
|
|
|
|
*/
|
2012-10-04 11:10:18 +00:00
|
|
|
#ifdef CONFIG_COMPAT
|
2012-10-10 14:27:04 +00:00
|
|
|
#define __ARCH_WANT_COMPAT_STAT64
|
|
|
|
#define __ARCH_WANT_SYS_GETHOSTNAME
|
|
|
|
#define __ARCH_WANT_SYS_PAUSE
|
|
|
|
#define __ARCH_WANT_SYS_GETPGRP
|
|
|
|
#define __ARCH_WANT_SYS_NICE
|
|
|
|
#define __ARCH_WANT_SYS_SIGPENDING
|
|
|
|
#define __ARCH_WANT_SYS_SIGPROCMASK
|
|
|
|
#define __ARCH_WANT_COMPAT_SYS_SENDFILE
|
2018-04-17 10:03:19 +00:00
|
|
|
#define __ARCH_WANT_SYS_UTIME32
|
2012-10-21 19:56:52 +00:00
|
|
|
#define __ARCH_WANT_SYS_FORK
|
|
|
|
#define __ARCH_WANT_SYS_VFORK
|
2014-01-30 17:56:56 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Compat syscall numbers used by the AArch64 kernel.
|
|
|
|
*/
|
|
|
|
#define __NR_compat_restart_syscall 0
|
2014-11-28 05:26:39 +00:00
|
|
|
#define __NR_compat_exit 1
|
|
|
|
#define __NR_compat_read 3
|
|
|
|
#define __NR_compat_write 4
|
2019-06-21 09:52:33 +00:00
|
|
|
#define __NR_compat_gettimeofday 78
|
2014-01-30 17:56:56 +00:00
|
|
|
#define __NR_compat_sigreturn 119
|
|
|
|
#define __NR_compat_rt_sigreturn 173
|
2019-06-21 09:52:33 +00:00
|
|
|
#define __NR_compat_clock_getres 247
|
|
|
|
#define __NR_compat_clock_gettime 263
|
|
|
|
#define __NR_compat_clock_gettime64 403
|
|
|
|
#define __NR_compat_clock_getres_time64 406
|
2014-01-30 17:56:56 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* The following SVCs are ARM private.
|
|
|
|
*/
|
|
|
|
#define __ARM_NR_COMPAT_BASE 0x0f0000
|
2019-01-03 17:45:07 +00:00
|
|
|
#define __ARM_NR_compat_cacheflush (__ARM_NR_COMPAT_BASE + 2)
|
|
|
|
#define __ARM_NR_compat_set_tls (__ARM_NR_COMPAT_BASE + 5)
|
|
|
|
#define __ARM_NR_COMPAT_END (__ARM_NR_COMPAT_BASE + 0x800)
|
2014-01-30 17:56:56 +00:00
|
|
|
|
2019-05-24 10:44:59 +00:00
|
|
|
#define __NR_compat_syscalls 435
|
2012-03-05 11:49:31 +00:00
|
|
|
#endif
|
2014-01-30 17:56:56 +00:00
|
|
|
|
2012-10-21 19:56:52 +00:00
|
|
|
#define __ARCH_WANT_SYS_CLONE
|
2015-01-06 16:42:32 +00:00
|
|
|
|
|
|
|
#ifndef __COMPAT_SYSCALL_NR
|
2012-10-11 10:05:13 +00:00
|
|
|
#include <uapi/asm/unistd.h>
|
2015-01-06 16:42:32 +00:00
|
|
|
#endif
|
2014-04-30 09:54:36 +00:00
|
|
|
|
|
|
|
#define NR_syscalls (__NR_syscalls)
|