patch-1.3.2 linux/include/asm-i386/segment.h

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

diff -u --recursive --new-file v1.3.1/linux/include/asm-i386/segment.h linux/include/asm-i386/segment.h
@@ -42,7 +42,7 @@
 		case 2:
 			__asm__ ("movw %w1,%%fs:%0"
 				:"=m" (*__sd(y))
-				:"iq" ((unsigned short) x), "m" (*__sd(y)));
+				:"ir" ((unsigned short) x), "m" (*__sd(y)));
 			break;
 		case 4:
 			__asm__ ("movl %1,%%fs:%0"
@@ -66,7 +66,7 @@
 			return (unsigned char) result;
 		case 2:
 			__asm__ ("movw %%fs:%1,%w0"
-				:"=q" (result)
+				:"=r" (result)
 				:"m" (*__sd(y)));
 			return (unsigned short) result;
 		case 4:
@@ -249,7 +249,7 @@
 		case 12:
 			*(int *) to = __get_user((const int *) from, 4);
 			*(1+(int *) to) = __get_user(1+(const int *) from, 4);
-			*(1+(int *) to) = __get_user(2+(const int *) from, 4);
+			*(2+(int *) to) = __get_user(2+(const int *) from, 4);
 			return;
 		case 16:
 			*(int *) to = __get_user((const int *) from, 4);

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