fix asm constraints in ffs

davej@codemonkey.org.uk
Mon, 24 Mar 2003 16:41:57 +0000


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/