1 /* SPDX-License-Identifier: GPL-2.0 */
2 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
4 #include <linux/linkage.h>
10 * int csky_cmpxchg(int oldval, int newval, int *ptr)
12 * If *ptr != oldval && return 1,
13 * else *ptr = newval return 0.
32 #ifdef CONFIG_CPU_HAS_LDSTEX
43 GLOBAL(csky_cmpxchg_ldw)
47 GLOBAL(csky_cmpxchg_stw)