patch-2.4.0-test5 linux/include/asm-i386/bitops.h

Next file: linux/include/asm-i386/e820.h
Previous file: linux/include/asm-arm/unaligned.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test4/linux/include/asm-i386/bitops.h linux/include/asm-i386/bitops.h
@@ -134,7 +134,9 @@
 
 	if (!size)
 		return 0;
-	__asm__("movl $-1,%%eax\n\t"
+	/* 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"
 		"repe; scasl\n\t"
 		"je 1f\n\t"

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