Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/ena-com ena: Convert not-right membar_enter...
details: https://anonhg.NetBSD.org/src/rev/162759444d7a
branches: trunk
changeset: 365163:162759444d7a
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Apr 09 23:44:54 2022 +0000
description:
ena: Convert not-right membar_enter/exit to membar_acquire/release.
Only used on non-x86 and non-aarch64, which probably means this
branch is never used. (This should really use bus_space_barrier or
bus_dmamap_sync.)
diffstat:
sys/external/bsd/ena-com/ena_plat.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (23 lines):
diff -r 4d5e0133fff8 -r 162759444d7a sys/external/bsd/ena-com/ena_plat.h
--- a/sys/external/bsd/ena-com/ena_plat.h Sat Apr 09 23:44:44 2022 +0000
+++ b/sys/external/bsd/ena-com/ena_plat.h Sat Apr 09 23:44:54 2022 +0000
@@ -38,7 +38,7 @@
#if 0
__FBSDID("$FreeBSD: head/sys/contrib/ena-com/ena_plat.h 333453 2018-05-10 09:25:51Z mw $");
#endif
-__KERNEL_RCSID(0, "$NetBSD: ena_plat.h,v 1.8 2022/04/09 12:49:36 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ena_plat.h,v 1.9 2022/04/09 23:44:54 riastradh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -392,8 +392,8 @@
#define wmb() __asm __volatile("dsb st" ::: "memory")
#define mb() __asm __volatile("dsb sy" ::: "memory")
#else
-#define rmb() membar_enter()
-#define wmb() membar_exit()
+#define rmb() membar_acquire()
+#define wmb() membar_release()
#define mb() membar_sync()
#endif
Home |
Main Index |
Thread Index |
Old Index