Explorar o código

Resolves: 207457
Summary: Changed the way we specify the memory offset in the slapi_counter_set_value() assembly code to make it work properly with gcc3.

Nathan Kinder %!s(int64=17) %!d(string=hai) anos
pai
achega
1aa243533d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ldap/servers/slapd/slapi_counter.c

+ 1 - 1
ldap/servers/slapd/slapi_counter.c

@@ -306,7 +306,7 @@ PRUint64 slapi_counter_set_value(Slapi_Counter *counter, PRUint64 newvalue)
         " movl 4%0, %%edx;"
         /* Put newval in ECX:EBX */
         " movl %1, %%ebx;"
-        " movl 4%1, %%ecx;"
+        " movl 4+%1, %%ecx;"
         /* If EDX:EAX and counter-> are the same,
          * replace *ptr with ECX:EBX */
         " lock; cmpxchg8b %0;"