Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Dec 2012 03:34:25 +0000 (UTC)
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r244170 - head/sys/dev/sym
Message-ID:  <201212130334.qBD3YP2B029180@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212130334.qBD3YP2B029180>