svn commit: r244170 - head/sys/dev/sym

Oleksandr Tymoshenko gonzo at FreeBSD.org
Thu Dec 13 03:34:25 UTC 2012


Author: gonzo
Date: Thu Dec 13 03:34:24 2012
New Revision: 244170
URL: http://svnweb.freebsd.org/changeset/base/244170

Log:
  Add memory barrier macros for ARM

Modified:
  head/sys/dev/sym/sym_hipd.c

Modified: head/sys/dev/sym/sym_hipd.c
==============================================================================
--- head/sys/dev/sym/sym_hipd.c	Thu Dec 13 03:33:01 2012	(r244169)
+++ head/sys/dev/sym/sym_hipd.c	Thu Dec 13 03:34:24 2012	(r244170)
@@ -135,6 +135,8 @@ typedef	u_int32_t u32;
 #define MEMORY_BARRIER()	__asm__ volatile("mf.a; mf" : : : "memory")
 #elif	defined	__sparc64__
 #define MEMORY_BARRIER()	__asm__ volatile("membar #Sync" : : : "memory")
+#elif	defined	__arm__
+#define MEMORY_BARRIER()	__do_dmb()
 #else
 #error	"Not supported platform"
 #endif


More information about the svn-src-head mailing list