summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/pci
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2010-09-06 19:05:49 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2010-09-06 19:05:49 +0000
commita37ac213156557c658b53c1130db212d2038ca6d (patch)
treeef4fa884ed488d4f804870edeb74fa25f6d6bac4 /sys/arch/amd64/pci
parent0043d7561f2a0bfcf8a3ca96f1cca433f725d1dd (diff)
Make sure bus_dmamap_sync() always involves a function call, to prevent the
compiler from doing stupid things like reordering stores around it. There is some debate whether this will be enough for newer versions of GCC and LLVM. If this is indeed deemed necessary, this will be addressed in a future diff. ok miod@, oga@
Diffstat (limited to 'sys/arch/amd64/pci')
-rw-r--r--sys/arch/amd64/pci/pci_machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/pci/pci_machdep.c b/sys/arch/amd64/pci/pci_machdep.c
index f4d4d603692..7c05d359182 100644
--- a/sys/arch/amd64/pci/pci_machdep.c
+++ b/sys/arch/amd64/pci/pci_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pci_machdep.c,v 1.35 2010/07/08 20:56:31 jordan Exp $ */
+/* $OpenBSD: pci_machdep.c,v 1.36 2010/09/06 19:05:48 kettenis Exp $ */
/* $NetBSD: pci_machdep.c,v 1.3 2003/05/07 21:33:58 fvdl Exp $ */
/*-
@@ -125,7 +125,7 @@ struct bus_dma_tag pci_bus_dma_tag = {
_bus_dmamap_load_uio,
_bus_dmamap_load_raw,
_bus_dmamap_unload,
- NULL,
+ _bus_dmamap_sync,
_bus_dmamem_alloc,
_bus_dmamem_free,
_bus_dmamem_map,