patch-1.3.83 linux/include/asm-i386/system.h

Next file: linux/include/linux/interrupt.h
Previous file: linux/include/asm-i386/smp_lock.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.82/linux/include/asm-i386/system.h linux/include/asm-i386/system.h
@@ -199,17 +199,17 @@
 	switch (size) {
 		case 1:
 			__asm__("xchgb %b0,%1"
-				:"=q" (x), "=m" (*__xg(ptr))
+				:"=&q" (x), "=m" (*__xg(ptr))
 				:"0" (x), "m" (*__xg(ptr)));
 			break;
 		case 2:
 			__asm__("xchgw %w0,%1"
-				:"=r" (x), "=m" (*__xg(ptr))
+				:"=&r" (x), "=m" (*__xg(ptr))
 				:"0" (x), "m" (*__xg(ptr)));
 			break;
 		case 4:
 			__asm__("xchgl %0,%1"
-				:"=r" (x), "=m" (*__xg(ptr))
+				:"=&r" (x), "=m" (*__xg(ptr))
 				:"0" (x), "m" (*__xg(ptr)));
 			break;
 	}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this