Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Copyright (C) 2012 ARM Ltd.
0004  */
0005 #ifdef CONFIG_COMPAT
0006 #define __ARCH_WANT_COMPAT_STAT
0007 #define __ARCH_WANT_COMPAT_STAT64
0008 #define __ARCH_WANT_SYS_GETHOSTNAME
0009 #define __ARCH_WANT_SYS_PAUSE
0010 #define __ARCH_WANT_SYS_GETPGRP
0011 #define __ARCH_WANT_SYS_NICE
0012 #define __ARCH_WANT_SYS_SIGPENDING
0013 #define __ARCH_WANT_SYS_SIGPROCMASK
0014 #define __ARCH_WANT_COMPAT_SYS_SENDFILE
0015 #define __ARCH_WANT_SYS_UTIME32
0016 #define __ARCH_WANT_SYS_FORK
0017 #define __ARCH_WANT_SYS_VFORK
0018 
0019 /*
0020  * Compat syscall numbers used by the AArch64 kernel.
0021  */
0022 #define __NR_compat_restart_syscall 0
0023 #define __NR_compat_exit        1
0024 #define __NR_compat_read        3
0025 #define __NR_compat_write       4
0026 #define __NR_compat_gettimeofday    78
0027 #define __NR_compat_sigreturn       119
0028 #define __NR_compat_rt_sigreturn    173
0029 #define __NR_compat_clock_gettime   263
0030 #define __NR_compat_clock_getres    264
0031 #define __NR_compat_clock_gettime64 403
0032 #define __NR_compat_clock_getres_time64 406
0033 
0034 /*
0035  * The following SVCs are ARM private.
0036  */
0037 #define __ARM_NR_COMPAT_BASE        0x0f0000
0038 #define __ARM_NR_compat_cacheflush  (__ARM_NR_COMPAT_BASE + 2)
0039 #define __ARM_NR_compat_set_tls     (__ARM_NR_COMPAT_BASE + 5)
0040 #define __ARM_NR_COMPAT_END     (__ARM_NR_COMPAT_BASE + 0x800)
0041 
0042 #define __NR_compat_syscalls        451
0043 #endif
0044 
0045 #define __ARCH_WANT_SYS_CLONE
0046 
0047 #ifndef __COMPAT_SYSCALL_NR
0048 #include <uapi/asm/unistd.h>
0049 #endif
0050 
0051 #define NR_syscalls (__NR_syscalls)