瀏覽代碼

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>
Michal Simek 13 年之前
父節點
當前提交
8cf662ed3e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/microblaze/include/asm/futex.h

+ 1 - 1
arch/microblaze/include/asm/futex.h

@@ -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)			\
 	);								\
 })