[kernel] Fix #DF when building with -O3

I had failed to specify in inline asm that an input variable was the
same as the output variable.
This commit is contained in:
Justin C. Miller
2021-02-17 00:22:22 -08:00
parent f0025dbc47
commit b6772ac2ea

View File

@@ -25,7 +25,7 @@ frame_allocator::frame_allocator(kernel::args::frame_block *frames, size_t count
inline unsigned
bsf(uint64_t v)
{
asm ("tzcntq %q0, %q1" : "=r"(v) : "r"(v) : "cc");
asm ("tzcntq %q0, %q1" : "=r"(v) : "0"(v) : "cc");
return v;
}