mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
[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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user