Author: weiden
Date: Wed Oct 11 21:41:42 2006
New Revision: 24487
URL:
http://svn.reactos.org/svn/reactos?rev=24487&view=rev
Log:
Fixed InterlockedExchangeAdd
Modified:
trunk/reactos/include/psdk/intrin.h
Modified: trunk/reactos/include/psdk/intrin.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/intrin.h?rev=…
==============================================================================
--- trunk/reactos/include/psdk/intrin.h (original)
+++ trunk/reactos/include/psdk/intrin.h Wed Oct 11 21:41:42 2006
@@ -265,7 +265,7 @@
static __inline__ __attribute__((always_inline)) long _InterlockedExchangeAdd(volatile
long * const Addend, const long Value)
{
long retval = Value;
- __asm__("lock; xaddl %[retval], %[Addend]" : "=r" (retval) :
"rm" (Addend));
+ __asm__("lock; xaddl %[retval], %[Addend]" : [retval] "=r" (retval)
: [Addend] "rm" (Addend));
return retval;
}