Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/alpha alpha: Convert cpu_iccb_send from memba...



details:   https://anonhg.NetBSD.org/src/rev/0a00fe15dbad
branches:  trunk
changeset: 365153:0a00fe15dbad
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Apr 09 23:39:18 2022 +0000

description:
alpha: Convert cpu_iccb_send from membar_exit to membar_release.

XXX Maybe this should really use alpha_mb, since it's not writing to
normal MI-type memory so technically the membr_* semantics doesn't
apply?

diffstat:

 sys/arch/alpha/alpha/cpu.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f3923dd32c2a -r 0a00fe15dbad sys/arch/alpha/alpha/cpu.c
--- a/sys/arch/alpha/alpha/cpu.c        Sat Apr 09 23:39:07 2022 +0000
+++ b/sys/arch/alpha/alpha/cpu.c        Sat Apr 09 23:39:18 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.105 2022/02/27 14:17:10 riastradh Exp $ */
+/* $NetBSD: cpu.c,v 1.106 2022/04/09 23:39:18 riastradh Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2000, 2001, 2020 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.105 2022/02/27 14:17:10 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.106 2022/04/09 23:39:18 riastradh Exp $");
 
 #include "opt_ddb.h"
 #include "opt_multiprocessor.h"
@@ -887,7 +887,7 @@
         */
        strcpy(pcsp->pcs_iccb.iccb_rxbuf, msg);
        pcsp->pcs_iccb.iccb_rxlen = strlen(msg);
-       membar_exit();
+       membar_release();
        atomic_or_ulong(&hwrpb->rpb_rxrdy, cpumask);
 
        /* Wait for the message to be received. */



Home | Main Index | Thread Index | Old Index