OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7a95cf
)
rx: xchg update.
author
Yoshinori Sato
<ysato@users.sourceforge.jp>
Sat, 2 Jan 2016 16:06:36 +0000
(
01:06
+0900)
committer
Yoshinori Sato
<yo-satoh@sios.com>
Fri, 28 Jan 2022 13:17:01 +0000
(22:17 +0900)
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
arch/rx/include/asm/cmpxchg.h
patch
|
blob
|
history
diff --git
a/arch/rx/include/asm/cmpxchg.h
b/arch/rx/include/asm/cmpxchg.h
index
6ab62df
..
749100c
100644
(file)
--- a/
arch/rx/include/asm/cmpxchg.h
+++ b/
arch/rx/include/asm/cmpxchg.h
@@
-17,17
+17,17
@@
static inline unsigned long __xchg(unsigned long x,
case 1:
__asm__ __volatile__
("xchg %1.b,%0"
- : "
=&r" (x), "=
Q" (*__xg(ptr)));
+ : "
+r" (x), "+
Q" (*__xg(ptr)));
break;
case 2:
__asm__ __volatile__
("xchg %1.w,%0"
- : "
=&r" (x), "=
Q" (*__xg(ptr)));
+ : "
+r" (x), "+
Q" (*__xg(ptr)));
break;
case 4:
__asm__ __volatile__
("xchg %1.l,%0"
- : "
=&r" (x), "=
Q" (*__xg(ptr)));
+ : "
+r" (x), "+
Q" (*__xg(ptr)));
break;
default:
__bad_xchg_size();