Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/dev/lib/libpci add some sort of bus_space_barrier()



details:   https://anonhg.NetBSD.org/src/rev/8a6766a30cec
branches:  trunk
changeset: 328684:8a6766a30cec
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sun Apr 13 15:43:26 2014 +0000

description:
add some sort of bus_space_barrier()

diffstat:

 sys/rump/dev/lib/libpci/rumpdev_bus_space.c |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r dbd2fbec71fa -r 8a6766a30cec sys/rump/dev/lib/libpci/rumpdev_bus_space.c
--- a/sys/rump/dev/lib/libpci/rumpdev_bus_space.c       Sun Apr 13 13:19:50 2014 +0000
+++ b/sys/rump/dev/lib/libpci/rumpdev_bus_space.c       Sun Apr 13 15:43:26 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rumpdev_bus_space.c,v 1.1 2014/04/04 12:53:59 pooka Exp $      */
+/*     $NetBSD: rumpdev_bus_space.c,v 1.2 2014/04/13 15:43:26 pooka Exp $      */
 
 /*-
  * Copyright (c) 2013 Antti Kantee.  All Rights Reserved.
@@ -26,6 +26,7 @@
  */
 
 #include <sys/cdefs.h>
+#include <sys/atomic.h>
 
 #include <sys/param.h>
 
@@ -175,3 +176,12 @@
 
        panic("%s: unimplemented", __func__);
 }
+
+void
+bus_space_barrier(bus_space_tag_t bst, bus_space_handle_t bsh,
+       bus_size_t offset, bus_size_t len, int flags)
+{
+
+       /* weelll ... */
+       membar_sync();
+}



Home | Main Index | Thread Index | Old Index