18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci *  arch/arm/include/asm/unistd.h
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci *  Copyright (C) 2001-2005 Russell King
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * This program is free software; you can redistribute it and/or modify
88c2ecf20Sopenharmony_ci * it under the terms of the GNU General Public License version 2 as
98c2ecf20Sopenharmony_ci * published by the Free Software Foundation.
108c2ecf20Sopenharmony_ci *
118c2ecf20Sopenharmony_ci * Please forward _all_ changes to this file to rmk@arm.linux.org.uk,
128c2ecf20Sopenharmony_ci * no matter what the change is.  Thanks!
138c2ecf20Sopenharmony_ci */
148c2ecf20Sopenharmony_ci#ifndef _UAPI__ASM_ARM_UNISTD_H
158c2ecf20Sopenharmony_ci#define _UAPI__ASM_ARM_UNISTD_H
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci#define __NR_OABI_SYSCALL_BASE	0x900000
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci#if defined(__thumb__) || defined(__ARM_EABI__)
208c2ecf20Sopenharmony_ci#define __NR_SYSCALL_BASE	0
218c2ecf20Sopenharmony_ci#include <asm/unistd-eabi.h>
228c2ecf20Sopenharmony_ci#else
238c2ecf20Sopenharmony_ci#define __NR_SYSCALL_BASE	__NR_OABI_SYSCALL_BASE
248c2ecf20Sopenharmony_ci#include <asm/unistd-oabi.h>
258c2ecf20Sopenharmony_ci#endif
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci#include <asm/unistd-common.h>
288c2ecf20Sopenharmony_ci#define __NR_sync_file_range2		__NR_arm_sync_file_range
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci/*
318c2ecf20Sopenharmony_ci * The following SWIs are ARM private.
328c2ecf20Sopenharmony_ci */
338c2ecf20Sopenharmony_ci#define __ARM_NR_BASE			(__NR_SYSCALL_BASE+0x0f0000)
348c2ecf20Sopenharmony_ci#define __ARM_NR_breakpoint		(__ARM_NR_BASE+1)
358c2ecf20Sopenharmony_ci#define __ARM_NR_cacheflush		(__ARM_NR_BASE+2)
368c2ecf20Sopenharmony_ci#define __ARM_NR_usr26			(__ARM_NR_BASE+3)
378c2ecf20Sopenharmony_ci#define __ARM_NR_usr32			(__ARM_NR_BASE+4)
388c2ecf20Sopenharmony_ci#define __ARM_NR_set_tls		(__ARM_NR_BASE+5)
398c2ecf20Sopenharmony_ci#define __ARM_NR_get_tls		(__ARM_NR_BASE+6)
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ci#endif /* _UAPI__ASM_ARM_UNISTD_H */
42