Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/common/lib/libc/arch/riscv/atomic riscv/membar_ops: Upgrade ...



details:   https://anonhg.NetBSD.org/src/rev/e2d74bef7407
branches:  trunk
changeset: 365143:e2d74bef7407
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Apr 09 22:53:53 2022 +0000

description:
riscv/membar_ops: Upgrade membar_enter from W/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:

 common/lib/libc/arch/riscv/atomic/membar_ops.S |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 1f13ac78dd80 -r e2d74bef7407 common/lib/libc/arch/riscv/atomic/membar_ops.S
--- a/common/lib/libc/arch/riscv/atomic/membar_ops.S    Sat Apr 09 22:53:45 2022 +0000
+++ b/common/lib/libc/arch/riscv/atomic/membar_ops.S    Sat Apr 09 22:53:53 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: membar_ops.S,v 1.2 2022/04/06 22:47:56 riastradh Exp $ */
+/*     $NetBSD: membar_ops.S,v 1.3 2022/04/09 22:53:53 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2006, 2007 The NetBSD Foundation, Inc.
@@ -39,7 +39,7 @@
 CRT_ALIAS(__sync_synchronize,_membar_sync)
 
 ENTRY_NP(_membar_enter)
-       fence   w,rw
+       fence   rw,rw
        ret
 END(_membar_enter)
 ATOMIC_OP_ALIAS(membar_enter,_membar_enter)



Home | Main Index | Thread Index | Old Index