Add a memory barrier to bus_dmamap_sync(), as should have always been

present. We need a sync instead of eieio, as eieio does not enforce storage
ordering between main and device memory.
This commit is contained in:
Nathan Whitehorn 2012-01-11 16:53:51 +00:00
parent 656b6da7e3
commit f5d125c53d

View File

@ -51,6 +51,7 @@ __FBSDID("$FreeBSD$");
#include <machine/atomic.h>
#include <machine/bus.h>
#include <machine/cpufunc.h>
#include <machine/md_var.h>
#include "iommu_if.h"
@ -979,6 +980,8 @@ _bus_dmamap_sync(bus_dma_tag_t dmat, bus_dmamap_t map, bus_dmasync_op_t op)
dmat->bounce_zone->total_bounced++;
}
}
powerpc_sync();
}
static void