瀏覽代碼

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 17 年之前
父節點
當前提交
1aa243533d
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;"