Author: hyperion
Date: Sat Sep 30 18:40:12 2006
New Revision: 24315
URL:
http://svn.reactos.org/svn/reactos?rev=24315&view=rev
Log:
Corrected DWORD operand typo (%l -> %k)
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 Sat Sep 30 18:40:12 2006
@@ -204,7 +204,7 @@
static __inline__ __attribute__((always_inline)) long
_InterlockedCompareExchange(volatile long * const Destination, const long Exchange, const
long Comperand)
{
long retval = Comperand;
- __asm__("lock; cmpxchgl %l[Exchange], %[Destination]" : "a" (retval)
: [Destination] "rm" (Destination), [Exchange] "r" (Exchange):
"memory");
+ __asm__("lock; cmpxchgl %k[Exchange], %[Destination]" : "a" (retval)
: [Destination] "rm" (Destination), [Exchange] "r" (Exchange):
"memory");
return retval;
}
@@ -247,7 +247,7 @@
static __inline__ __attribute__((always_inline)) void *
_InterlockedCompareExchangePointer(void * volatile * const Destination, void * const
Exchange, void * const Comperand)
{
void * retval;
- __asm__("lock; cmpxchgl %l[Exchange], %[Destination]" : "a" (retval)
: [Destination] "rm" (Destination), [Exchange] "r" (Exchange),
"a" (Comperand) : "memory");
+ __asm__("lock; cmpxchgl %k[Exchange], %[Destination]" : "a" (retval)
: [Destination] "rm" (Destination), [Exchange] "r" (Exchange),
"a" (Comperand) : "memory");
return retval;
}
@@ -563,7 +563,7 @@
static __inline__ __attribute__((always_inline)) unsigned long __readfsdword(const
unsigned long Offset)
{
unsigned long value;
- __asm__("movl %%fs:%a[Offset], %l[value]" : [value] "=q" (value) :
[Offset] "irm" (Offset));
+ __asm__("movl %%fs:%a[Offset], %k[value]" : [value] "=q" (value) :
[Offset] "irm" (Offset));
return value;
}