2017-12-13 18:59:23 +01:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
2015-10-09 17:17:17 +02:00
|
|
|
/*
|
|
|
|
* arch/arm/include/asm/unistd.h
|
|
|
|
*
|
|
|
|
* Copyright (C) 2001-2005 Russell King
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* Please forward _all_ changes to this file to rmk@arm.linux.org.uk,
|
|
|
|
* no matter what the change is. Thanks!
|
|
|
|
*/
|
|
|
|
#ifndef __ASM_ARM_UNISTD_H
|
|
|
|
#define __ASM_ARM_UNISTD_H
|
|
|
|
|
|
|
|
#define __NR_OABI_SYSCALL_BASE 0x900000
|
|
|
|
|
|
|
|
#if defined(__thumb__) || defined(__ARM_EABI__)
|
|
|
|
#define __NR_SYSCALL_BASE 0
|
2017-02-27 13:45:39 +01:00
|
|
|
#include <asm/unistd-eabi.h>
|
2015-10-09 17:17:17 +02:00
|
|
|
#else
|
|
|
|
#define __NR_SYSCALL_BASE __NR_OABI_SYSCALL_BASE
|
2017-02-27 13:45:39 +01:00
|
|
|
#include <asm/unistd-oabi.h>
|
2015-10-09 17:17:17 +02:00
|
|
|
#endif
|
|
|
|
|
2017-02-27 13:45:39 +01:00
|
|
|
#include <asm/unistd-common.h>
|
2015-10-09 17:17:17 +02:00
|
|
|
#define __NR_sync_file_range2 __NR_arm_sync_file_range
|
|
|
|
|
|
|
|
/*
|
|
|
|
* The following SWIs are ARM private.
|
|
|
|
*/
|
|
|
|
#define __ARM_NR_BASE (__NR_SYSCALL_BASE+0x0f0000)
|
|
|
|
#define __ARM_NR_breakpoint (__ARM_NR_BASE+1)
|
|
|
|
#define __ARM_NR_cacheflush (__ARM_NR_BASE+2)
|
|
|
|
#define __ARM_NR_usr26 (__ARM_NR_BASE+3)
|
|
|
|
#define __ARM_NR_usr32 (__ARM_NR_BASE+4)
|
|
|
|
#define __ARM_NR_set_tls (__ARM_NR_BASE+5)
|
2017-12-13 18:59:23 +01:00
|
|
|
#define __ARM_NR_get_tls (__ARM_NR_BASE+6)
|
2015-10-09 17:17:17 +02:00
|
|
|
|
|
|
|
#endif /* __ASM_ARM_UNISTD_H */
|