1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

add store barrier to avoid consistency problems

This commit is contained in:
Stefan Lankes 2016-06-28 13:50:05 +02:00
parent 5bdc732cd8
commit 05da1694a1

View file

@ -403,6 +403,9 @@ static int mmnif_commit_packet(uint8_t dest, uint32_t addr)
volatile mm_rx_buffer_t *rb = (mm_rx_buffer_t *) ((char *)header_start_address + (dest - 1) * header_size);
uint32_t i;
// be sure that the packet has been written
wmb();
for (i = 0; i < MMNIF_MAX_DESCRIPTORS; i++)
{
if (rb->desc_table[i].addr == addr