projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add working a_spin() atomic for non-x86 targets
[musl]
/
arch
/
or1k
/
atomic.h
diff --git
a/arch/or1k/atomic.h
b/arch/or1k/atomic.h
index
5b0411b
..
f9e6981
100644
(file)
--- a/
arch/or1k/atomic.h
+++ b/
arch/or1k/atomic.h
@@
-74,6
+74,7
@@
static inline void a_store(volatile int *p, int x)
static inline void a_spin()
{
+ a_cas(&(int){0}, 0, 0);
}
static inline void a_crash()