fix asm constraints in ffs

From: davej@codemonkey.org.uk
Date: Mon Mar 24 2003 - 11:41:57 EST


Another brought forward from 2.4.

diff -urpN --exclude-from=/home/davej/.exclude bk-linus/include/asm-i386/bitops.h linux-2.5/include/asm-i386/bitops.h
--- bk-linus/include/asm-i386/bitops.h 2003-03-08 09:57:46.000000000 +0000
+++ linux-2.5/include/asm-i386/bitops.h 2003-03-17 23:42:49.000000000 +0000
@@ -458,7 +458,7 @@ static __inline__ int ffs(int x)
         __asm__("bsfl %1,%0\n\t"
                 "jnz 1f\n\t"
                 "movl $-1,%0\n"
- "1:" : "=r" (r) : "g" (x));
+ "1:" : "=r" (r) : "rm" (x));
         return r+1;
 }
 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Mar 31 2003 - 22:00:16 EST