1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef _UAPI_XTENSA_UNISTD_H
3 #define _UAPI_XTENSA_UNISTD_H
5 #include <asm/unistd_32.h>
7 #define __ARCH_WANT_SYS_OLDUMOUNT
10 * sysxtensa syscall handler
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);
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 */
26 #endif /* _UAPI_XTENSA_UNISTD_H */