diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2010-09-06 19:05:49 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2010-09-06 19:05:49 +0000 |
commit | a37ac213156557c658b53c1130db212d2038ca6d (patch) | |
tree | ef4fa884ed488d4f804870edeb74fa25f6d6bac4 /sys/arch/i386/pci | |
parent | 0043d7561f2a0bfcf8a3ca96f1cca433f725d1dd (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/i386/pci')
-rw-r--r-- | sys/arch/i386/pci/pci_machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/pci/pci_machdep.c b/sys/arch/i386/pci/pci_machdep.c index d4a0336a104..d47c18b6e53 100644 --- a/sys/arch/i386/pci/pci_machdep.c +++ b/sys/arch/i386/pci/pci_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_machdep.c,v 1.53 2010/07/08 20:56:31 jordan Exp $ */ +/* $OpenBSD: pci_machdep.c,v 1.54 2010/09/06 19:05:48 kettenis Exp $ */ /* $NetBSD: pci_machdep.c,v 1.28 1997/06/06 23:29:17 thorpej Exp $ */ /*- @@ -167,7 +167,7 @@ struct bus_dma_tag pci_bus_dma_tag = { _bus_dmamap_load_uio, _bus_dmamap_load_raw, _bus_dmamap_unload, - NULL, /* _dmamap_sync */ + _bus_dmamap_sync, _bus_dmamem_alloc, _bus_dmamem_free, _bus_dmamem_map, |