[ros-diffs] [weiden] 24487: Fixed InterlockedExchangeAdd
weiden at svn.reactos.org
weiden at svn.reactos.org
Wed Oct 11 19:41:43 CEST 2006
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=24487&r1=24486&r2=24487&view=diff
==============================================================================
--- 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;
}
More information about the Ros-diffs
mailing list