xref: /openbmc/linux/arch/arm/include/uapi/asm/unistd.h (revision 8fcd6c45f5a65621ec809b7866a3623e9a01d4ed)
1cb8db5d4SDavid Howells /*
2cb8db5d4SDavid Howells  *  arch/arm/include/asm/unistd.h
3cb8db5d4SDavid Howells  *
4cb8db5d4SDavid Howells  *  Copyright (C) 2001-2005 Russell King
5cb8db5d4SDavid Howells  *
6cb8db5d4SDavid Howells  * This program is free software; you can redistribute it and/or modify
7cb8db5d4SDavid Howells  * it under the terms of the GNU General Public License version 2 as
8cb8db5d4SDavid Howells  * published by the Free Software Foundation.
9cb8db5d4SDavid Howells  *
10cb8db5d4SDavid Howells  * Please forward _all_ changes to this file to rmk@arm.linux.org.uk,
11cb8db5d4SDavid Howells  * no matter what the change is.  Thanks!
12cb8db5d4SDavid Howells  */
13cb8db5d4SDavid Howells #ifndef _UAPI__ASM_ARM_UNISTD_H
14cb8db5d4SDavid Howells #define _UAPI__ASM_ARM_UNISTD_H
15cb8db5d4SDavid Howells 
16cb8db5d4SDavid Howells #define __NR_OABI_SYSCALL_BASE	0x900000
17cb8db5d4SDavid Howells 
18cb8db5d4SDavid Howells #if defined(__thumb__) || defined(__ARM_EABI__)
19cb8db5d4SDavid Howells #define __NR_SYSCALL_BASE	0
2096a8fae0SRussell King #include <asm/unistd-eabi.h>
21cb8db5d4SDavid Howells #else
22cb8db5d4SDavid Howells #define __NR_SYSCALL_BASE	__NR_OABI_SYSCALL_BASE
2396a8fae0SRussell King #include <asm/unistd-oabi.h>
24cb8db5d4SDavid Howells #endif
25cb8db5d4SDavid Howells 
2696a8fae0SRussell King #include <asm/unistd-common.h>
27cb8db5d4SDavid Howells #define __NR_sync_file_range2		__NR_arm_sync_file_range
28cb8db5d4SDavid Howells 
29cb8db5d4SDavid Howells /*
30cb8db5d4SDavid Howells  * The following SWIs are ARM private.
31cb8db5d4SDavid Howells  */
32cb8db5d4SDavid Howells #define __ARM_NR_BASE			(__NR_SYSCALL_BASE+0x0f0000)
33cb8db5d4SDavid Howells #define __ARM_NR_breakpoint		(__ARM_NR_BASE+1)
34cb8db5d4SDavid Howells #define __ARM_NR_cacheflush		(__ARM_NR_BASE+2)
35cb8db5d4SDavid Howells #define __ARM_NR_usr26			(__ARM_NR_BASE+3)
36cb8db5d4SDavid Howells #define __ARM_NR_usr32			(__ARM_NR_BASE+4)
37cb8db5d4SDavid Howells #define __ARM_NR_set_tls		(__ARM_NR_BASE+5)
38*8fcd6c45SNicolas Pitre #define __ARM_NR_get_tls		(__ARM_NR_BASE+6)
39cb8db5d4SDavid Howells 
40cb8db5d4SDavid Howells #endif /* _UAPI__ASM_ARM_UNISTD_H */
41