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:
parent
5bdc732cd8
commit
05da1694a1
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue