Commit 1edc3098 authored by Dave Jones's avatar Dave Jones

[PATCH] fix asm constraints in ffs

Another brought forward from 2.4.
parent a08a1a5f
...@@ -458,7 +458,7 @@ static __inline__ int ffs(int x) ...@@ -458,7 +458,7 @@ static __inline__ int ffs(int x)
__asm__("bsfl %1,%0\n\t" __asm__("bsfl %1,%0\n\t"
"jnz 1f\n\t" "jnz 1f\n\t"
"movl $-1,%0\n" "movl $-1,%0\n"
"1:" : "=r" (r) : "g" (x)); "1:" : "=r" (r) : "rm" (x));
return r+1; return r+1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment