Skip to content

Commit

Permalink
microblaze: Fix __futex_atomic_op macro register usage
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michal Simek committed Mar 28, 2012
1 parent e02db0a commit 8cf662e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/microblaze/include/asm/futex.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
); \
})

Expand Down

0 comments on commit 8cf662e

Please sign in to comment.