Skip to content

Commit

Permalink
tools/virtio: add dma barrier stubs
Browse files Browse the repository at this point in the history
Fixes: 55e49dc ("virtio_ring: switch to dma_XX barriers for rpmsg")
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
  • Loading branch information
mstsirkin committed Jul 27, 2018
1 parent d72e90f commit 8129e2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/virtio/asm/barrier.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
} while (0);
/* Weak barriers should be used. If not - it's a bug */
# define mb() abort()
# define rmb() abort()
# define wmb() abort()
# define dma_rmb() abort()
# define dma_wmb() abort()
#else
#error Please fill in barrier macros
#endif
Expand Down

0 comments on commit 8129e2a

Please sign in to comment.