Update of /cvsroot/linux-vax/kernel-2.5/include/asm-vax
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5565/include/asm-vax
Modified Files:
bitops.h
Log Message:
- Set inline assembler constraint to "mr" instead of "m" only.
Index: bitops.h
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.5/include/asm-vax/bitops.h,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- bitops.h 19 Nov 2004 13:08:56 -0000 1.14
+++ bitops.h 19 Nov 2004 14:29:30 -0000 1.15
@@ -394,18 +394,17 @@
int r;
/*
- * FIXME: We're forcing the input to be in memory, but it would
- * be okay if it was in a register, too. However, if it's "g",
- * gcc may decide to put in an immediate value, which is not accepted
- * by CPU (and gas).
+ * FIXME: We're forcing the input to be in memory or register.
+ * However, if was "g", gcc may decide to make an immediate value
+ * out of it, which is not accepted by CPU (and gas).
*/
__asm__("ffs $0, $32, %1, %0\n"
"bnequ 1f\n"
"movl $-1,%0\n"
"1:"
: "=ir" (r)
- : "m" (x));
- return r+1;
+ : "mr" (x));
+ return r + 1;
}
#endif
|