Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd keep dsb in vchiq code.
details: https://anonhg.NetBSD.org/src/rev/7369c6d444cc
branches: trunk
changeset: 356236:7369c6d444cc
user: maya <maya%NetBSD.org@localhost>
date: Mon Sep 11 07:33:45 2017 +0000
description:
keep dsb in vchiq code.
dsb refers to an arm instruction, so it won't be used on MI code.
diffstat:
sys/external/bsd/common/include/asm/barrier.h | 3 +--
sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.h | 2 ++
2 files changed, 3 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r 823f37de5884 -r 7369c6d444cc sys/external/bsd/common/include/asm/barrier.h
--- a/sys/external/bsd/common/include/asm/barrier.h Mon Sep 11 06:02:09 2017 +0000
+++ b/sys/external/bsd/common/include/asm/barrier.h Mon Sep 11 07:33:45 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: barrier.h,v 1.2 2017/09/11 05:22:10 maya Exp $ */
+/* $NetBSD: barrier.h,v 1.3 2017/09/11 07:33:45 maya Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -41,7 +41,6 @@
#define mb membar_sync
#define wmb membar_producer
#define rmb membar_consumer
-#define dsb membar_producer
#ifdef __alpha__ /* XXX As if... */
# define read_barrier_depends membar_sync
diff -r 823f37de5884 -r 7369c6d444cc sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.h
--- a/sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.h Mon Sep 11 06:02:09 2017 +0000
+++ b/sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.h Mon Sep 11 07:33:45 2017 +0000
@@ -328,6 +328,8 @@
#define BCM2835_MBOX_CHAN_VCHIQ 3
#define bcm_mbox_write bcmmbox_write
+#define dsb membar_producer
+
#define device_print_prettyname(dev) device_printf((dev), "")
#endif /* __VCHI_NETBSD_H__ */
Home |
Main Index |
Thread Index |
Old Index