patch-2.4.27 linux-2.4.27/include/asm-i386/bitops.h

Next file: linux-2.4.27/include/asm-i386/i387.h
Previous file: linux-2.4.27/include/asm-i386/acpi.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.26/include/asm-i386/bitops.h linux-2.4.27/include/asm-i386/bitops.h
@@ -266,7 +266,6 @@
 
 	if (!size)
 		return 0;
-	/* This looks at memory. Mark it volatile to tell gcc not to move it around */
 	__asm__ __volatile__(
 		"movl $-1,%%eax\n\t"
 		"xorl %%edx,%%edx\n\t"
@@ -279,7 +278,7 @@
 		"shll $3,%%edi\n\t"
 		"addl %%edi,%%edx"
 		:"=d" (res), "=&c" (d0), "=&D" (d1), "=&a" (d2)
-		:"1" ((size + 31) >> 5), "2" (addr), "b" (addr));
+		:"1" ((size + 31) >> 5), "2" (addr), "b" (addr) : "memory");
 	return res;
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)