projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update ppc atomic
[urcu.git]
/
arch_atomic_ppc.h
diff --git
a/arch_atomic_ppc.h
b/arch_atomic_ppc.h
index 231a57798598e3da844d6938a95d9502b402da86..16ddc012302dd397038c71da6b2f96cc817e21ff 100644
(file)
--- a/
arch_atomic_ppc.h
+++ b/
arch_atomic_ppc.h
@@
-36,6
+36,13
@@
#ifndef _INCLUDE_API_H
#ifndef _INCLUDE_API_H
+#define atomic_set(addr, v) \
+do { \
+ ACCESS_ONCE(*(addr)) = (v); \
+} while (0)
+
+#define atomic_read(addr) ACCESS_ONCE(*(addr))
+
/*
* Using a isync as second barrier for exchange to provide acquire semantic.
* According to atomic_ops/sysdeps/gcc/powerpc.h, the documentation is "fairly
/*
* Using a isync as second barrier for exchange to provide acquire semantic.
* According to atomic_ops/sysdeps/gcc/powerpc.h, the documentation is "fairly
This page took
0.023234 seconds
and
4
git commands to generate.