Index: uspace/lib/libc/arch/mips32/include/atomic.h
===================================================================
--- uspace/lib/libc/arch/mips32/include/atomic.h	(revision 776f2e6f3f2763bf655dd3937028c5934c7785c9)
+++ uspace/lib/libc/arch/mips32/include/atomic.h	(revision 1f0d2ee9eb86b0f6395841b771d76d9444ffb9be)
@@ -65,5 +65,5 @@
 		"	beq %0, %4, 1b\n"	/* if the atomic operation failed, try again */
 		/*	nop	*/		/* nop is inserted automatically by compiler */
-		: "=r" (tmp), "=m" (val->count), "=r" (v)
+		: "=&r" (tmp), "=m" (val->count), "=&r" (v)
 		: "i" (i), "i" (0)
 		);
