about summary refs log tree commit diff
path: root/mach/lowlevellock.h
diff options
context:
space:
mode:
Diffstat (limited to 'mach/lowlevellock.h')
-rw-r--r--mach/lowlevellock.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/mach/lowlevellock.h b/mach/lowlevellock.h
index a4f6af4c29..d0adbd42e0 100644
--- a/mach/lowlevellock.h
+++ b/mach/lowlevellock.h
@@ -78,7 +78,7 @@ extern kern_return_t __gsync_wait_intr
          || atomic_compare_and_exchange_bool_acq (__iptr, 1, 0) != 0)   \
        while (1)   \
          {   \
-           if (atomic_exchange_acq (__iptr, 2) == 0)   \
+           if (atomic_exchange_acquire (__iptr, 2) == 0)   \
              break;   \
            __lll_wait (__iptr, 2, __flags);   \
          }   \
@@ -102,7 +102,7 @@ extern kern_return_t __gsync_wait_intr
 #define __lll_unlock(ptr, flags)   \
   ({   \
      int *__iptr = (int *)(ptr);   \
-     if (atomic_exchange_rel (__iptr, 0) == 2)   \
+     if (atomic_exchange_release (__iptr, 0) == 2)   \
        __lll_wake (__iptr, (flags));   \
      (void)0;   \
    })