update for HEAD-2003021201
[reactos.git] / ntoskrnl / ex / i386 / interlck.c
index e5f23a6..2d5e2bc 100644 (file)
@@ -34,8 +34,8 @@ Exfi386InterlockedExchangeUlong(IN PULONG Target,
 
 __asm__("\n\t.global @Exfi386InterlockedExchangeUlong@8\n\t"
        "@Exfi386InterlockedExchangeUlong@8:\n\t"
-       "movl (%ecx),%eax\n"
        "xchgl %edx,(%ecx)\n\t"
+       "movl  %edx,%eax\n\t"
        "ret\n\t");
 
 
@@ -124,8 +124,8 @@ InterlockedExchange(PLONG Target,
 
 __asm__("\n\t.global @InterlockedExchange@8\n\t"
        "@InterlockedExchange@8:\n\t"
-       "movl (%ecx),%eax\n"
        "xchgl %edx,(%ecx)\n\t"
+       "movl  %edx,%eax\n\t"
        "ret\n\t");