OSDN Git Service

rx: operand fix.
authorYoshinori Sato <ysato@users.sourceforge.jp>
Sun, 3 Jan 2016 04:56:05 +0000 (13:56 +0900)
committerYoshinori Sato <yo-satoh@sios.com>
Fri, 28 Jan 2022 13:23:44 +0000 (22:23 +0900)
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
arch/rx/include/asm/bitops.h

index 2bce2e7..6dd8b70 100644 (file)
@@ -80,7 +80,7 @@ static __inline__ int FNNAME(int nr, volatile void * addr)    \
                         OP " %3, %1.b\n\t"                     \
                         "scnz.l %0\n\t"                        \
                         "mvtc %2, psw"                         \
-                        : "=r"(result),"+m"(*b_addr),"=r"(psw) \
+                        : "=r"(result),"+m"(*b_addr),"=&r"(psw)        \
                         :"ri"(nr & 7):"cc");                   \
        return result;                                          \
 }                                                              \