Use membar_sync() instead of inline asm.
This commit is contained in:
parent
35f9ffd80d
commit
a30c21a6f3
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: machdep.c,v 1.236 2009/03/18 10:22:37 cegger Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.237 2009/05/16 03:23:23 nakayama Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -71,7 +71,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.236 2009/03/18 10:22:37 cegger Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.237 2009/05/16 03:23:23 nakayama Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_multiprocessor.h"
|
||||
|
@ -1303,7 +1303,7 @@ _bus_dmamap_sync(bus_dma_tag_t t, bus_dmamap_t map, bus_addr_t offset,
|
|||
* Don't really need to do anything, but flush any pending
|
||||
* writes anyway.
|
||||
*/
|
||||
__asm("membar #Sync" : );
|
||||
membar_sync();
|
||||
}
|
||||
if (ops & BUS_DMASYNC_POSTREAD) {
|
||||
/* Invalidate the vcache */
|
||||
|
|
Loading…
Reference in New Issue