projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1d89d4
)
remove cruft from microblaze atomic.h
author
Rich Felker
<dalias@aerifal.cx>
Sat, 19 Jul 2014 17:03:30 +0000
(13:03 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Mon, 28 Jul 2014 04:28:00 +0000
(
00:28
-0400)
(cherry picked from commit
94252dd341a7c72b31db2614abdc74142ad80562
)
arch/microblaze/atomic.h
patch
|
blob
|
history
diff --git
a/arch/microblaze/atomic.h
b/arch/microblaze/atomic.h
index 818bcc0ddf4113a1d941e896455634d530114162..90fcd8b68840afe9d3ab718889357864be6ba3ae 100644
(file)
--- a/
arch/microblaze/atomic.h
+++ b/
arch/microblaze/atomic.h
@@
-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;