1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_SH_FUTEX_LLSC_H
3 #define __ASM_SH_FUTEX_LLSC_H
5 static inline int atomic_futex_op_cmpxchg_inatomic(u32
*uval
,
7 u32 oldval
, u32 newval
)
23 ".section .fixup,\"ax\"\n"
31 ".section __ex_table,\"a\"\n\t"
35 :"+r" (err
), "=&r" (*uval
)
36 :"r" (uaddr
), "i" (-EFAULT
), "r" (oldval
), "r" (newval
)
37 :"t", "memory", "r0");
42 #endif /* __ASM_SH_FUTEX_LLSC_H */