microblaze: Fix __futex_atomic_op macro register usage
authorMichal Simek <monstr@monstr.eu>
Tue, 27 Mar 2012 08:10:15 +0000 (10:10 +0200)
committerMichal Simek <monstr@monstr.eu>
Wed, 28 Mar 2012 06:28:24 +0000 (08:28 +0200)
Old Microblaze toolchain supported "b" contstrains for
all register but it always points to general purpose reg.
New Microblaze toolchain is more strict in this
and general purpose register should be used there "r".

Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/include/asm/futex.h

index b0526d2716fa7defea7c036c750284f5a7496443..ff8cde159d9a4809abac1994537b5425c71c9cb4 100644 (file)
@@ -24,7 +24,7 @@
                        .word   1b,4b,2b,4b;                            \
                        .previous;"                                     \
        : "=&r" (oldval), "=&r" (ret)                                   \
-       : "b" (uaddr), "i" (-EFAULT), "r" (oparg)                       \
+       : "r" (uaddr), "i" (-EFAULT), "r" (oparg)                       \
        );                                                              \
 })