1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_SH_FUTEX_CAS_H
3 #define __ASM_SH_FUTEX_CAS_H
5 static inline int atomic_futex_op_cmpxchg_inatomic(u32
*uval
,
7 u32 oldval
, u32 newval
)
15 ".section .fixup,\"ax\"\n"
23 ".section __ex_table,\"a\"\n\t"
27 :"+r" (err
), "+r" (newval
)
28 :"r" (oldval
), "i" (-EFAULT
), "z" (uaddr
)
35 #endif /* __ASM_SH_FUTEX_CAS_H */