summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include/bus.h
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2005-02-04 01:27:21 +0000
committergrehan <grehan@FreeBSD.org>2005-02-04 01:27:21 +0000
commit9b25a73faa1c8950f6a1eb6fbbc4578ff38a64aa (patch)
tree7476e6a1a73e048061b9b9bcd2d7c3b5241a4368 /sys/powerpc/include/bus.h
parent6584effc03e4d60163ff6629d25d6402b00326e5 (diff)
downloadFreeBSD-src-9b25a73faa1c8950f6a1eb6fbbc4578ff38a64aa.zip
FreeBSD-src-9b25a73faa1c8950f6a1eb6fbbc4578ff38a64aa.tar.gz
Convert bus_space_barrier() into a null inline function rather than an
empty macro to avoid many compile warnings in the USB code.
Diffstat (limited to 'sys/powerpc/include/bus.h')
-rw-r--r--sys/powerpc/include/bus.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/powerpc/include/bus.h b/sys/powerpc/include/bus.h
index d61d6d6..af47fc6 100644
--- a/sys/powerpc/include/bus.h
+++ b/sys/powerpc/include/bus.h
@@ -726,11 +726,18 @@ bus_space_set_region_stream_4(bus_space_tag_t tag, bus_space_handle_t bsh,
* provide the flags to MI code.
*/
-#define bus_space_barrier(t, h, o, l, f) \
- ((void)((void)(t), (void)(h), (void)(o), (void)(l), (void)(f)))
#define BUS_SPACE_BARRIER_READ 0x01 /* force read barrier */
#define BUS_SPACE_BARRIER_WRITE 0x02 /* force write barrier */
+static __inline void
+bus_space_barrier(bus_space_tag_t tag __unused,
+ bus_space_handle_t bsh __unused, bus_size_t offset __unused,
+ bus_size_t len __unused, int flags __unused)
+{
+ __asm __volatile("" : : : "memory");
+}
+
+
#define BUS_SPACE_ALIGNED_POINTER(p, t) ALIGNED_POINTER(p, t)
/*
OpenPOWER on IntegriCloud