summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2022-04-09 22:53:36 +0000
committerriastradh <riastradh@NetBSD.org>2022-04-09 22:53:36 +0000
commit626bd2da4d1c7a21ac886c63ace1988e5a80c424 (patch)
treefe330bba99cbeb2194ba93af480b22eabf9c28d2 /common
parent9f79cb5fdc176af38036de93ff7062ef71af9644 (diff)
i386/membar_ops: Upgrade membar_enter from R/RW to RW/RW.
This will be deprecated soon but let's avoid leaving rakes to trip on with it arising from disagreement over the documentation (W/RW) and implementation and usage (R/RW).
Diffstat (limited to 'common')
-rw-r--r--common/lib/libc/arch/i386/atomic/atomic.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/lib/libc/arch/i386/atomic/atomic.S b/common/lib/libc/arch/i386/atomic/atomic.S
index f46d91fbc5a..9112d92ff7d 100644
--- a/common/lib/libc/arch/i386/atomic/atomic.S
+++ b/common/lib/libc/arch/i386/atomic/atomic.S
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic.S,v 1.33 2022/04/09 12:07:29 riastradh Exp $ */
+/* $NetBSD: atomic.S,v 1.34 2022/04/09 22:53:36 riastradh Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -342,7 +342,7 @@ ALIAS(__sync_val_compare_and_swap_8,_atomic_cas_64)
ALIAS(membar_consumer,_membar_consumer)
ALIAS(membar_producer,_membar_producer)
-ALIAS(membar_enter,_membar_consumer)
+ALIAS(membar_enter,_membar_sync)
ALIAS(membar_exit,_membar_producer)
ALIAS(membar_sync,_membar_sync)
@@ -398,7 +398,7 @@ STRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_32_ni)
STRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_32_ni)
STRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_32_ni)
-STRONG_ALIAS(_membar_enter,_membar_consumer)
+STRONG_ALIAS(_membar_enter,_membar_sync)
STRONG_ALIAS(_membar_exit,_membar_producer)
#ifdef _HARDKERNEL