提交 94252dd3 编写于 作者: R Rich Felker

remove cruft from microblaze atomic.h

上级 7fdae458
......@@ -22,19 +22,6 @@ static inline int a_ctz_64(uint64_t x)
return a_ctz_l(y);
}
static inline int a_cas_1(volatile int *p, int t, int s)
{
register int tmp;
do {
__asm__ __volatile__ ("lwx %0, %1, r0"
: "=r"(tmp) : "r"(p) : "memory");
if (tmp != t) return tmp;
__asm__ __volatile__ ("swx %2, %1, r0 ; addic %0, r0, 0"
: "=r"(tmp) : "r"(p), "r"(s) : "cc", "memory");
} while (tmp);
return t;
}
static inline int a_cas(volatile int *p, int t, int s)
{
register int old, tmp;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册