1e2be04c7SGreg 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 18*4e57a4ddSArnd Bergmann #define __NR_SYSCALL_MASK 0x0fffff 19cb8db5d4SDavid Howells 20cb8db5d4SDavid Howells #if defined(__thumb__) || defined(__ARM_EABI__) 21cb8db5d4SDavid Howells #define __NR_SYSCALL_BASE 0 2296a8fae0SRussell King #include <asm/unistd-eabi.h> 23cb8db5d4SDavid Howells #else 24cb8db5d4SDavid Howells #define __NR_SYSCALL_BASE __NR_OABI_SYSCALL_BASE 2596a8fae0SRussell King #include <asm/unistd-oabi.h> 26cb8db5d4SDavid Howells #endif 27cb8db5d4SDavid Howells 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) 398fcd6c45SNicolas Pitre #define __ARM_NR_get_tls (__ARM_NR_BASE+6) 40cb8db5d4SDavid Howells 41cb8db5d4SDavid Howells #endif /* _UAPI__ASM_ARM_UNISTD_H */ 42