Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/include Make alpha_wmb() actually a WMB rathe...



details:   https://anonhg.NetBSD.org/src/rev/f9e862897058
branches:  trunk
changeset: 368587:f9e862897058
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Jul 20 15:52:47 2022 +0000

description:
Make alpha_wmb() actually a WMB rather than an MB (all uses of
alpha_wmb() have been audited and fixed-up as necessary).

diffstat:

 sys/arch/alpha/include/alpha_cpu.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 775594ccaee6 -r f9e862897058 sys/arch/alpha/include/alpha_cpu.h
--- a/sys/arch/alpha/include/alpha_cpu.h        Wed Jul 20 15:45:28 2022 +0000
+++ b/sys/arch/alpha/include/alpha_cpu.h        Wed Jul 20 15:52:47 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: alpha_cpu.h,v 1.55 2021/11/02 11:26:03 ryo Exp $ */
+/* $NetBSD: alpha_cpu.h,v 1.56 2022/07/20 15:52:47 thorpej Exp $ */
 
 /*
  * Copyright (c) 1996 Carnegie-Mellon University.
@@ -377,7 +377,7 @@
 }
 
 #define        alpha_mb()      __asm volatile("mb" : : : "memory")
-#define        alpha_wmb()     __asm volatile("mb" : : : "memory")     /* XXX */
+#define        alpha_wmb()     __asm volatile("wmb" : : : "memory")
 
 #if defined(_KERNEL) || defined(_STANDALONE)
 



Home | Main Index | Thread Index | Old Index