xref: /linux/arch/xtensa/include/uapi/asm/unistd.h (revision 69bfec7548f4c1595bac0e3ddfc0458a5af31f4c)
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef _UAPI_XTENSA_UNISTD_H
3 #define _UAPI_XTENSA_UNISTD_H
4 
5 #include <asm/unistd_32.h>
6 
7 #define __ARCH_WANT_SYS_OLDUMOUNT
8 
9 /*
10  * sysxtensa syscall handler
11  *
12  * int sysxtensa (SYS_XTENSA_ATOMIC_SET,     ptr, val,    unused);
13  * int sysxtensa (SYS_XTENSA_ATOMIC_ADD,     ptr, val,    unused);
14  * int sysxtensa (SYS_XTENSA_ATOMIC_EXG_ADD, ptr, val,    unused);
15  * int sysxtensa (SYS_XTENSA_ATOMIC_CMP_SWP, ptr, oldval, newval);
16  *        a2            a6                   a3    a4      a5
17  */
18 
19 #define SYS_XTENSA_RESERVED               0     /* don't use this */
20 #define SYS_XTENSA_ATOMIC_SET             1     /* set variable */
21 #define SYS_XTENSA_ATOMIC_EXG_ADD         2     /* exchange memory and add */
22 #define SYS_XTENSA_ATOMIC_ADD             3     /* add to memory */
23 #define SYS_XTENSA_ATOMIC_CMP_SWP         4     /* compare and swap */
24 #define SYS_XTENSA_COUNT                  5     /* count */
25 
26 #endif /* _UAPI_XTENSA_UNISTD_H */
27