Add a memory barrier for PREWRITE operations to ensure all writes by the
CPU have drained before further writes to kick off the operation. MFC after: 1 week
This commit is contained in:
parent
8ed695309f
commit
8eebae090b
|
@ -891,6 +891,10 @@ _bus_dmamap_sync(bus_dma_tag_t dmat, bus_dmamap_t map, bus_dmasync_op_t op)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Ensure any pending writes have drained. */
|
||||
if (op & (BUS_DMASYNC_PREWRITE))
|
||||
alpha_mb();
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue