projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add ifdef cond around headers
[urcu.git]
/
urcu
/
uatomic_arch_ppc.h
diff --git
a/urcu/uatomic_arch_ppc.h
b/urcu/uatomic_arch_ppc.h
index 4db7007ff991de54088aa39913eeac431c65648a..710ce054e86514093f45024c573fdd3e33f58230 100644
(file)
--- a/
urcu/uatomic_arch_ppc.h
+++ b/
urcu/uatomic_arch_ppc.h
@@
-106,7
+106,7
@@
unsigned long _uatomic_cmpxchg(void *addr, unsigned long old,
__asm__ __volatile__(
LWSYNC_OPCODE
"1:\t" "lwarx %0,0,%1\n" /* load and reserve */
__asm__ __volatile__(
LWSYNC_OPCODE
"1:\t" "lwarx %0,0,%1\n" /* load and reserve */
- "cmp
d
%0,%3\n" /* if load is not equal to */
+ "cmp
w
%0,%3\n" /* if load is not equal to */
"bne 2f\n" /* old, fail */
"stwcx. %2,0,%1\n" /* else store conditional */
"bne- 1b\n" /* retry if lost reservation */
"bne 2f\n" /* old, fail */
"stwcx. %2,0,%1\n" /* else store conditional */
"bne- 1b\n" /* retry if lost reservation */
This page took
0.026349 seconds
and
4
git commands to generate.