lightweight robust futexes: i386
In-Reply-To: <[email protected]>
Quoted 6 lines · Ulrich Drepper
Quoted 3 lines · Chuck Ebbert
Quoted 1 line
+ : "=a" (oldval), "=m" (*uaddr)
^^^^Should be "+m" because it's both read and written.
No, this is why there is the "0" input parameter.
But this is arg 1, not 0. With a memory clobber it's irrelevant
anyway though.
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
+ : "memory"
^^^^^^^^Is this necessary? Every possible memory location that could be
affected has been listed in the operands if the above change is made.This makes the asm a barrier for the compiler.
A comment to that effect would be nice; IOW document the reason for it.
Signature · 2 lines
Chuck "Equations are the Devil's sentences." --Stephen Colbert