EDX is modified, should not you list "=d" as output, with new variable (d2)?
Or better, drop last line of assembly code, and say that (res) is in
"d", and list "a" as clobbered or dummy output register.
And BTW, if you'll do
unsigned long b = 0x8000;
find_first_bit(&b, 1);
return value will be 15 even with patched function. So either more
fixing is needed, or code which calls find_first_bit() with value which
is not multiple of 32 should take special care that last dword does
not contain set bits after last interesting bit.
So maybe callers should just treat any return value >= size as "not found",
leaving older smaller code in place.
Best regards,
Petr Vandrovec
vandrove@vc.cvut.cz
-
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/