Index: uspace/lib/libc/arch/mips32/include/atomic.h
===================================================================
--- uspace/lib/libc/arch/mips32/include/atomic.h	(revision afb1e35bc801349b8b29725021823bbc5542f798)
+++ uspace/lib/libc/arch/mips32/include/atomic.h	(revision 0f44f04e65087c8d3c9d14370f2f553d6b523298)
@@ -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)
 		);
