From a37ac213156557c658b53c1130db212d2038ca6d Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Mon, 6 Sep 2010 19:05:49 +0000 Subject: 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@ --- sys/arch/amd64/pci/pci_machdep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/amd64/pci') 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, -- cgit v1.2.3