Index: kernel/arch/ia32/include/memstr.h
===================================================================
--- kernel/arch/ia32/include/memstr.h	(revision d68253a4d9f9ef895ded8023f373eff11acfc672)
+++ kernel/arch/ia32/include/memstr.h	(revision 0f44f04e65087c8d3c9d14370f2f553d6b523298)
@@ -95,5 +95,5 @@
 		"addl $1, %0\n\t"
 		"1:\n"
-		: "=a" (ret), "=%S" (d0), "=&D" (d1), "=&c" (d2)
+		: "=a" (ret), "=&S" (d0), "=&D" (d1), "=&c" (d2)
 		: "0" (0), "1" ((unative_t) src), "2" ((unative_t) dst), "3" ((unative_t) cnt)
 	);
@@ -117,5 +117,5 @@
 	asm volatile (
 		"rep stosw\n\t"
-		: "=&D" (d0), "=&c" (d1), "=a" (x)
+		: "=&D" (d0), "=&c" (d1), "=&a" (x)
 		: "0" (dst), "1" (cnt), "2" (x)
 		: "memory"
@@ -139,5 +139,5 @@
 	asm volatile (
 		"rep stosb\n\t"
-		: "=&D" (d0), "=&c" (d1), "=a" (x)
+		: "=&D" (d0), "=&c" (d1), "=&a" (x)
 		: "0" (dst), "1" (cnt), "2" (x)
 		: "memory"
