Skip to content

Commit 8cf662e

Browse files
committed
microblaze: Fix __futex_atomic_op macro register usage
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>
1 parent e02db0a commit 8cf662e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/microblaze/include/asm/futex.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
.word 1b,4b,2b,4b; \
2525
.previous;" \
2626
: "=&r" (oldval), "=&r" (ret) \
27-
: "b" (uaddr), "i" (-EFAULT), "r" (oparg) \
27+
: "r" (uaddr), "i" (-EFAULT), "r" (oparg) \
2828
); \
2929
})
3030

0 commit comments

Comments
 (0)