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