Christopher Ferris | 2598113 | 2017-11-14 16:53:49 -0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
Ben Cheng | d1c0939 | 2013-11-06 15:23:59 -0800 | [diff] [blame] | 2 | /* |
| 3 | * arch/arm/include/asm/unistd.h |
| 4 | * |
| 5 | * Copyright (C) 2001-2005 Russell King |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License version 2 as |
| 9 | * published by the Free Software Foundation. |
| 10 | * |
| 11 | * Please forward _all_ changes to this file to rmk@arm.linux.org.uk, |
| 12 | * no matter what the change is. Thanks! |
| 13 | */ |
| 14 | #ifndef _UAPI__ASM_ARM_UNISTD_H |
| 15 | #define _UAPI__ASM_ARM_UNISTD_H |
| 16 | |
| 17 | #define __NR_OABI_SYSCALL_BASE 0x900000 |
| 18 | |
| 19 | #if defined(__thumb__) || defined(__ARM_EABI__) |
| 20 | #define __NR_SYSCALL_BASE 0 |
Christopher Ferris | 2fd4b3c | 2017-02-21 12:32:08 -0800 | [diff] [blame] | 21 | #include <asm/unistd-eabi.h> |
Ben Cheng | d1c0939 | 2013-11-06 15:23:59 -0800 | [diff] [blame] | 22 | #else |
| 23 | #define __NR_SYSCALL_BASE __NR_OABI_SYSCALL_BASE |
Christopher Ferris | 2fd4b3c | 2017-02-21 12:32:08 -0800 | [diff] [blame] | 24 | #include <asm/unistd-oabi.h> |
Ben Cheng | d1c0939 | 2013-11-06 15:23:59 -0800 | [diff] [blame] | 25 | #endif |
| 26 | |
Christopher Ferris | 2fd4b3c | 2017-02-21 12:32:08 -0800 | [diff] [blame] | 27 | #include <asm/unistd-common.h> |
Ben Cheng | d1c0939 | 2013-11-06 15:23:59 -0800 | [diff] [blame] | 28 | #define __NR_sync_file_range2 __NR_arm_sync_file_range |
Ben Cheng | d1c0939 | 2013-11-06 15:23:59 -0800 | [diff] [blame] | 29 | |
| 30 | /* |
Ben Cheng | d1c0939 | 2013-11-06 15:23:59 -0800 | [diff] [blame] | 31 | * The following SWIs are ARM private. |
| 32 | */ |
| 33 | #define __ARM_NR_BASE (__NR_SYSCALL_BASE+0x0f0000) |
| 34 | #define __ARM_NR_breakpoint (__ARM_NR_BASE+1) |
| 35 | #define __ARM_NR_cacheflush (__ARM_NR_BASE+2) |
| 36 | #define __ARM_NR_usr26 (__ARM_NR_BASE+3) |
| 37 | #define __ARM_NR_usr32 (__ARM_NR_BASE+4) |
| 38 | #define __ARM_NR_set_tls (__ARM_NR_BASE+5) |
Christopher Ferris | a1a109e | 2018-01-31 15:03:12 -0800 | [diff] [blame] | 39 | #define __ARM_NR_get_tls (__ARM_NR_BASE+6) |
Ben Cheng | d1c0939 | 2013-11-06 15:23:59 -0800 | [diff] [blame] | 40 | |
Ben Cheng | d1c0939 | 2013-11-06 15:23:59 -0800 | [diff] [blame] | 41 | #endif /* _UAPI__ASM_ARM_UNISTD_H */ |