]> git.hungrycats.org Git - linux/commitdiff
[PATCH] fix asm constraints in ffs
authorDave Jones <davej@codemonkey.org.uk>
Mon, 24 Mar 2003 00:51:02 +0000 (16:51 -0800)
committerDave Jones <davej@codemonkey.org.uk>
Mon, 24 Mar 2003 00:51:02 +0000 (16:51 -0800)
Another brought forward from 2.4.

include/asm-i386/bitops.h

index 6e38b86a466a3e93752b8fddeb5de1009326dbe3..130cf24045856f81da6a840ffeb66ecbf352b96a 100644 (file)
@@ -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;
 }