tools/virtio: add dma barrier stubs

Fixes: 55e49dc43a ("virtio_ring: switch to dma_XX barriers for rpmsg")
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
Michael S. Tsirkin 2018-07-25 16:35:09 +03:00
parent d72e90f33a
commit 8129e2a1cb

View File

@ -13,8 +13,8 @@
} while (0); } while (0);
/* Weak barriers should be used. If not - it's a bug */ /* Weak barriers should be used. If not - it's a bug */
# define mb() abort() # define mb() abort()
# define rmb() abort() # define dma_rmb() abort()
# define wmb() abort() # define dma_wmb() abort()
#else #else
#error Please fill in barrier macros #error Please fill in barrier macros
#endif #endif