diff options
author | grehan <grehan@FreeBSD.org> | 2005-02-04 01:27:21 +0000 |
---|---|---|
committer | grehan <grehan@FreeBSD.org> | 2005-02-04 01:27:21 +0000 |
commit | 9b25a73faa1c8950f6a1eb6fbbc4578ff38a64aa (patch) | |
tree | 7476e6a1a73e048061b9b9bcd2d7c3b5241a4368 /sys/powerpc/include | |
parent | 6584effc03e4d60163ff6629d25d6402b00326e5 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/powerpc/include/bus.h | 11 |
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) /* |