Skip to contentSkip to conversation

fix asm constraints in ffs

PATCH [email protected] 1 participant 1 message Mar 24, 2003

lore
Share & tools
lore
#0 lore raw

Another brought forward from 2.4.

include/asm-i386/bitops.h +1 -1
diff -urpN --exclude-from=/home/davej/.exclude bk-linus/include/asm-i386/bitops.h linux-2.5/include/asm-i386/bitops.h
@@ -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;
 }