svn commit: r229967 - head/sys/powerpc/powerpc
Nathan Whitehorn
nwhitehorn at FreeBSD.org
Wed Jan 11 16:53:52 UTC 2012
Author: nwhitehorn
Date: Wed Jan 11 16:53:51 2012
New Revision: 229967
URL: http://svn.freebsd.org/changeset/base/229967
Log:
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.
Modified:
head/sys/powerpc/powerpc/busdma_machdep.c
Modified: head/sys/powerpc/powerpc/busdma_machdep.c
==============================================================================
--- head/sys/powerpc/powerpc/busdma_machdep.c Wed Jan 11 16:35:26 2012 (r229966)
+++ head/sys/powerpc/powerpc/busdma_machdep.c Wed Jan 11 16:53:51 2012 (r229967)
@@ -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
dmat->bounce_zone->total_bounced++;
}
}
+
+ powerpc_sync();
}
static void
More information about the svn-src-all
mailing list