Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 /*
0003  *  arch/arm/include/asm/unistd.h
0004  *
0005  *  Copyright (C) 2001-2005 Russell King
0006  *
0007  * This program is free software; you can redistribute it and/or modify
0008  * it under the terms of the GNU General Public License version 2 as
0009  * published by the Free Software Foundation.
0010  *
0011  * Please forward _all_ changes to this file to rmk@arm.linux.org.uk,
0012  * no matter what the change is.  Thanks!
0013  */
0014 #ifndef _UAPI__ASM_ARM_UNISTD_H
0015 #define _UAPI__ASM_ARM_UNISTD_H
0016 
0017 #define __NR_OABI_SYSCALL_BASE  0x900000
0018 #define __NR_SYSCALL_MASK   0x0fffff
0019 
0020 #if defined(__thumb__) || defined(__ARM_EABI__)
0021 #define __NR_SYSCALL_BASE   0
0022 #include <asm/unistd-eabi.h>
0023 #else
0024 #define __NR_SYSCALL_BASE   __NR_OABI_SYSCALL_BASE
0025 #include <asm/unistd-oabi.h>
0026 #endif
0027 
0028 #define __NR_sync_file_range2       __NR_arm_sync_file_range
0029 
0030 /*
0031  * The following SWIs are ARM private.
0032  */
0033 #define __ARM_NR_BASE           (__NR_SYSCALL_BASE+0x0f0000)
0034 #define __ARM_NR_breakpoint     (__ARM_NR_BASE+1)
0035 #define __ARM_NR_cacheflush     (__ARM_NR_BASE+2)
0036 #define __ARM_NR_usr26          (__ARM_NR_BASE+3)
0037 #define __ARM_NR_usr32          (__ARM_NR_BASE+4)
0038 #define __ARM_NR_set_tls        (__ARM_NR_BASE+5)
0039 #define __ARM_NR_get_tls        (__ARM_NR_BASE+6)
0040 
0041 #endif /* _UAPI__ASM_ARM_UNISTD_H */