summaryrefslogtreecommitdiff
path: root/lib/libc/arch
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2018-05-17 20:28:33 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2018-05-17 20:28:33 +0000
commit47cc8afdebdc9f52832f2c09fd79c371f6486d7c (patch)
tree15d1686ccb5b8a4df159af7964c8a19724dcbec0 /lib/libc/arch
parent641bee903b7ac7f39242ddf95ec1d453670c1840 (diff)
Drop memory barrier in _atomic_lock() implementation since the callers now
take care of this. ok visa@, mpi@
Diffstat (limited to 'lib/libc/arch')
-rw-r--r--lib/libc/arch/aarch64/gen/_atomic_lock.c3
-rw-r--r--lib/libc/arch/arm/gen/_atomic_lock.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/lib/libc/arch/aarch64/gen/_atomic_lock.c b/lib/libc/arch/aarch64/gen/_atomic_lock.c
index f4b0ad30508..837d38d9e6a 100644
--- a/lib/libc/arch/aarch64/gen/_atomic_lock.c
+++ b/lib/libc/arch/aarch64/gen/_atomic_lock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: _atomic_lock.c,v 1.1 2017/08/15 06:16:37 guenther Exp $ */
+/* $OpenBSD: _atomic_lock.c,v 1.2 2018/05/17 20:28:32 kettenis Exp $ */
/*
* Copyright (c) 2004 Dale Rahn. All rights reserved.
@@ -41,7 +41,6 @@ _atomic_lock(volatile _atomic_lock_t *lock)
" stlxr %w2, %w3, [%x1] \n"
" cmp %w2, #0 \n"
" bne 1b \n"
- " dmb sy \n"
: "+r" (old), "+r" (lock), "+r" (scratch)
: "r" (_ATOMIC_LOCK_LOCKED));
diff --git a/lib/libc/arch/arm/gen/_atomic_lock.c b/lib/libc/arch/arm/gen/_atomic_lock.c
index f93aae59ad3..3a392cf5ad6 100644
--- a/lib/libc/arch/arm/gen/_atomic_lock.c
+++ b/lib/libc/arch/arm/gen/_atomic_lock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: _atomic_lock.c,v 1.1 2017/08/15 06:13:24 guenther Exp $ */
+/* $OpenBSD: _atomic_lock.c,v 1.2 2018/05/17 20:28:32 kettenis Exp $ */
/*
* Copyright (c) 2004 Dale Rahn. All rights reserved.
@@ -41,7 +41,6 @@ _atomic_lock(volatile _atomic_lock_t *lock)
" strex %2, %3, [%1] \n"
" cmp %2, #0 \n"
" bne 1b \n"
- " dmb sy \n"
: "+r" (old), "+r" (lock), "+r" (scratch)
: "r" (_ATOMIC_LOCK_LOCKED));