
9 Apr
2008
9 Apr
'08
11:27 p.m.
Rene Rivera:
Peter Dimov wrote:
What happens when you change...
bool try_lock() { int r;
__asm__ __volatile__( "swp %0, %1, [%2]": "=r"( r ): // outputs
... this line to
"=&r"( r ): // outputs
Bingo!
Thanks, fixed in SVN. Apparently, the swp instruction doesn't like being given the same register twice. Does spinlock_try_test.cpp pass as well?