Module Name: src
Committed By: nakayama
Date: Sat May 16 03:23:23 UTC 2009
Modified Files:
src/sys/arch/sparc64/sparc64: machdep.c
Log Message:
Use membar_sync() instead of inline asm.
To generate a diff of this commit:
cvs rdiff -u -r1.236 -r1.237 src/sys/arch/sparc64/sparc64/machdep.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sparc64/sparc64/machdep.c
diff -u src/sys/arch/sparc64/sparc64/machdep.c:1.236 src/sys/arch/sparc64/sparc64/machdep.c:1.237
--- src/sys/arch/sparc64/sparc64/machdep.c:1.236 Wed Mar 18 10:22:37 2009
+++ src/sys/arch/sparc64/sparc64/machdep.c Sat May 16 03:23:23 2009
@@ -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 @@
* 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 */