mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Last fix due to w3seek. I will stop working on this stuff until I have
time to be thorough. svn path=/trunk/; revision=13893
This commit is contained in:
parent
53af8e03f3
commit
b1bfbd3389
1 changed files with 3 additions and 2 deletions
|
@ -136,8 +136,9 @@ InterlockedExchange(LPLONG target, LONG value )
|
||||||
"lock\n\txchgl %0,(%1)"
|
"lock\n\txchgl %0,(%1)"
|
||||||
:"=r" (ret):"r" (target), "0" (value):"memory" );
|
:"=r" (ret):"r" (target), "0" (value):"memory" );
|
||||||
#elif defined(_M_PPC)
|
#elif defined(_M_PPC)
|
||||||
|
do {
|
||||||
ret = *(volatile LONG *)target;
|
ret = *(volatile LONG *)target;
|
||||||
while( InterlockedCompareExchange( target, value, ret ) != ret );
|
} while( InterlockedCompareExchange( target, value, ret ) != ret );
|
||||||
#endif
|
#endif
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue