mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 13:22:23 +00:00
5eacadb5e6
System call table generation script must be run to gener- ate unistd_32.h and syscall_table.h files. This patch will have changes which will invokes the script. This patch will generate unistd_32.h and syscall_table.h files by the syscall table generation script invoked by xtensa/Makefile and the generated files against the removed files must be identical. The generated uapi header file will be included in uapi/- asm/unistd.h and generated system call table header file will be included by kernel/syscall.c file. Signed-off-by: Firoz Khan <firoz.khan@linaro.org> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
27 lines
1006 B
C
27 lines
1006 B
C
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
|
#ifndef _UAPI_XTENSA_UNISTD_H
|
|
#define _UAPI_XTENSA_UNISTD_H
|
|
|
|
#include <asm/unistd_32.h>
|
|
|
|
#define __ARCH_WANT_SYS_OLDUMOUNT
|
|
|
|
/*
|
|
* sysxtensa syscall handler
|
|
*
|
|
* int sysxtensa (SYS_XTENSA_ATOMIC_SET, ptr, val, unused);
|
|
* int sysxtensa (SYS_XTENSA_ATOMIC_ADD, ptr, val, unused);
|
|
* int sysxtensa (SYS_XTENSA_ATOMIC_EXG_ADD, ptr, val, unused);
|
|
* int sysxtensa (SYS_XTENSA_ATOMIC_CMP_SWP, ptr, oldval, newval);
|
|
* a2 a6 a3 a4 a5
|
|
*/
|
|
|
|
#define SYS_XTENSA_RESERVED 0 /* don't use this */
|
|
#define SYS_XTENSA_ATOMIC_SET 1 /* set variable */
|
|
#define SYS_XTENSA_ATOMIC_EXG_ADD 2 /* exchange memory and add */
|
|
#define SYS_XTENSA_ATOMIC_ADD 3 /* add to memory */
|
|
#define SYS_XTENSA_ATOMIC_CMP_SWP 4 /* compare and swap */
|
|
#define SYS_XTENSA_COUNT 5 /* count */
|
|
|
|
#endif /* _UAPI_XTENSA_UNISTD_H */
|