Source-Changes-HG archive

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

[src/netbsd-9]: src/sys/kern Pull up following revision(s) (requested by ryo ...



details:   https://anonhg.NetBSD.org/src/rev/80dd350f4f78
branches:  netbsd-9
changeset: 454140:80dd350f4f78
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Sep 06 19:37:51 2019 +0000

description:
Pull up following revision(s) (requested by ryo in ticket #181):

        sys/kern/subr_ipi.c: revision 1.5

Requires memory barrier before IPI ack.
Problem was seen on the aarch64 cpus.
Fixes PR/54009

diffstat:

 sys/kern/subr_ipi.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 9ebc80a089d5 -r 80dd350f4f78 sys/kern/subr_ipi.c
--- a/sys/kern/subr_ipi.c       Thu Sep 05 09:12:12 2019 +0000
+++ b/sys/kern/subr_ipi.c       Fri Sep 06 19:37:51 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_ipi.c,v 1.4 2019/04/06 02:59:05 thorpej Exp $     */
+/*     $NetBSD: subr_ipi.c,v 1.4.4.1 2019/09/06 19:37:51 martin Exp $  */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_ipi.c,v 1.4 2019/04/06 02:59:05 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_ipi.c,v 1.4.4.1 2019/09/06 19:37:51 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -331,6 +331,9 @@
                msg->func(msg->arg);
 
                /* Ack the request. */
+#ifndef __HAVE_ATOMIC_AS_MEMBAR
+               membar_producer();
+#endif
                atomic_dec_uint(&msg->_pending);
        }
 }



Home | Main Index | Thread Index | Old Index