diff options
author | 2014-03-12 13:00:35 +0000 | |
---|---|---|
committer | 2014-03-12 13:00:35 +0000 | |
commit | c41fa110f1c0e69283d9bd2c40a0a4bbccda7a2b (patch) | |
tree | 2b6918d7485bb5152b2c7e2e0c45e8294a447a59 | |
parent | since we are documenting that setpwfile() is no longer available, maybe (diff) | |
download | wireguard-openbsd-c41fa110f1c0e69283d9bd2c40a0a4bbccda7a2b.tar.xz wireguard-openbsd-c41fa110f1c0e69283d9bd2c40a0a4bbccda7a2b.zip |
Add compiler barier to bus_dmamap_sync(9), just in case compiler/linker
optimizations really become as evil as some people claim, or some poor
soul tries to optimize things by inlining this function.
-rw-r--r-- | sys/arch/i386/i386/bus_dma.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/bus_dma.c b/sys/arch/i386/i386/bus_dma.c index 8ab9a9668a5..710ba3b211c 100644 --- a/sys/arch/i386/i386/bus_dma.c +++ b/sys/arch/i386/i386/bus_dma.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bus_dma.c,v 1.27 2013/12/12 21:04:50 kettenis Exp $ */ +/* $OpenBSD: bus_dma.c,v 1.28 2014/03/12 13:00:35 kettenis Exp $ */ /*- * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc. * All rights reserved. @@ -373,6 +373,7 @@ _bus_dmamap_sync(bus_dma_tag_t t, bus_dmamap_t map, bus_addr_t addr, bus_size_t size, int op) { /* Nothing to do here. */ + __asm __volatile("" : : : "memory"); } /* |