提交 fd224a80 编写于 作者: R Rich Felker

make aarch64 atomic_arch.h report that it defines pointer-sized ll/sc

at present this is done only for consistency, since this file defines
its own a_cas_p rather than using the new generic one from atomic.h
added in commit 225f6a6b. these
definitions may however be useful if we ever need to add other
pointer-sized atomic operations.
上级 225f6a6b
......@@ -34,6 +34,7 @@ static inline int a_cas(volatile int *p, int t, int s)
return old;
}
#define a_ll_p a_ll_p
static inline void *a_ll_p(volatile void *p)
{
void *v;
......@@ -41,6 +42,7 @@ static inline void *a_ll_p(volatile void *p)
return v;
}
#define a_sc_p a_sc_p
static inline int a_sc_p(volatile int *p, void *v)
{
int r;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册