Convert bus_space_barrier() into a null inline function rather than an

empty macro to avoid many compile warnings in the USB code.
This commit is contained in:
Peter Grehan 2005-02-04 01:27:21 +00:00
parent 4e895c543a
commit 911e488a03
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=141226

View File

@ -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)
/*