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:
John Baldwin 2005-09-15 17:09:42 +00:00
parent 8ed695309f
commit 8eebae090b
1 changed files with 4 additions and 0 deletions

View File

@ -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