git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge to Fedora kernel-2.6.18-1.2224_FC5 patched with stable patch-2.6.18.1-vs2.0...
[linux-2.6.git]
/
include
/
asm-powerpc
/
atomic.h
diff --git
a/include/asm-powerpc/atomic.h
b/include/asm-powerpc/atomic.h
index
bb3c0ab
..
53283e2
100644
(file)
--- a/
include/asm-powerpc/atomic.h
+++ b/
include/asm-powerpc/atomic.h
@@
-27,8
+27,8
@@
static __inline__ void atomic_add(int a, atomic_t *v)
PPC405_ERR77(0,%3)
" stwcx. %0,0,%3 \n\
bne- 1b"
PPC405_ERR77(0,%3)
" stwcx. %0,0,%3 \n\
bne- 1b"
- : "=&r" (t), "
=
m" (v->counter)
- : "r" (a), "r" (&v->counter)
, "m" (v->counter)
+ : "=&r" (t), "
+
m" (v->counter)
+ : "r" (a), "r" (&v->counter)
: "cc");
}
: "cc");
}
@@
-63,8
+63,8
@@
static __inline__ void atomic_sub(int a, atomic_t *v)
PPC405_ERR77(0,%3)
" stwcx. %0,0,%3 \n\
bne- 1b"
PPC405_ERR77(0,%3)
" stwcx. %0,0,%3 \n\
bne- 1b"
- : "=&r" (t), "
=
m" (v->counter)
- : "r" (a), "r" (&v->counter)
, "m" (v->counter)
+ : "=&r" (t), "
+
m" (v->counter)
+ : "r" (a), "r" (&v->counter)
: "cc");
}
: "cc");
}
@@
-97,8
+97,8
@@
static __inline__ void atomic_inc(atomic_t *v)
PPC405_ERR77(0,%2)
" stwcx. %0,0,%2 \n\
bne- 1b"
PPC405_ERR77(0,%2)
" stwcx. %0,0,%2 \n\
bne- 1b"
- : "=&r" (t), "
=
m" (v->counter)
- : "r" (&v->counter)
, "m" (v->counter)
+ : "=&r" (t), "
+
m" (v->counter)
+ : "r" (&v->counter)
: "cc");
}
: "cc");
}
@@
-141,8
+141,8
@@
static __inline__ void atomic_dec(atomic_t *v)
PPC405_ERR77(0,%2)\
" stwcx. %0,0,%2\n\
bne- 1b"
PPC405_ERR77(0,%2)\
" stwcx. %0,0,%2\n\
bne- 1b"
- : "=&r" (t), "
=
m" (v->counter)
- : "r" (&v->counter)
, "m" (v->counter)
+ : "=&r" (t), "
+
m" (v->counter)
+ : "r" (&v->counter)
: "cc");
}
: "cc");
}
@@
-253,8
+253,8
@@
static __inline__ void atomic64_add(long a, atomic64_t *v)
add %0,%2,%0\n\
stdcx. %0,0,%3 \n\
bne- 1b"
add %0,%2,%0\n\
stdcx. %0,0,%3 \n\
bne- 1b"
- : "=&r" (t), "
=
m" (v->counter)
- : "r" (a), "r" (&v->counter)
, "m" (v->counter)
+ : "=&r" (t), "
+
m" (v->counter)
+ : "r" (a), "r" (&v->counter)
: "cc");
}
: "cc");
}
@@
-287,8
+287,8
@@
static __inline__ void atomic64_sub(long a, atomic64_t *v)
subf %0,%2,%0\n\
stdcx. %0,0,%3 \n\
bne- 1b"
subf %0,%2,%0\n\
stdcx. %0,0,%3 \n\
bne- 1b"
- : "=&r" (t), "
=
m" (v->counter)
- : "r" (a), "r" (&v->counter)
, "m" (v->counter)
+ : "=&r" (t), "
+
m" (v->counter)
+ : "r" (a), "r" (&v->counter)
: "cc");
}
: "cc");
}
@@
-319,8
+319,8
@@
static __inline__ void atomic64_inc(atomic64_t *v)
addic %0,%0,1\n\
stdcx. %0,0,%2 \n\
bne- 1b"
addic %0,%0,1\n\
stdcx. %0,0,%2 \n\
bne- 1b"
- : "=&r" (t), "
=
m" (v->counter)
- : "r" (&v->counter)
, "m" (v->counter)
+ : "=&r" (t), "
+
m" (v->counter)
+ : "r" (&v->counter)
: "cc");
}
: "cc");
}
@@
-361,8
+361,8
@@
static __inline__ void atomic64_dec(atomic64_t *v)
addic %0,%0,-1\n\
stdcx. %0,0,%2\n\
bne- 1b"
addic %0,%0,-1\n\
stdcx. %0,0,%2\n\
bne- 1b"
- : "=&r" (t), "
=
m" (v->counter)
- : "r" (&v->counter)
, "m" (v->counter)
+ : "=&r" (t), "
+
m" (v->counter)
+ : "r" (&v->counter)
: "cc");
}
: "cc");
}