Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 May 2012 22:06:00 +0000 (UTC)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r235942 - head/sys/powerpc/include
Message-ID:  <201205242206.q4OM60Nl063117@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marcel
Date: Thu May 24 22:06:00 2012
New Revision: 235942
URL: http://svn.freebsd.org/changeset/base/235942

Log:
  Revert isync for ILP32 to sync as per my original change that I discussed
  with Nathan. Leave __ATOMIC_ACQ as an isync as per Nathan.

Modified:
  head/sys/powerpc/include/atomic.h

Modified: head/sys/powerpc/include/atomic.h
==============================================================================
--- head/sys/powerpc/include/atomic.h	Thu May 24 22:00:48 2012	(r235941)
+++ head/sys/powerpc/include/atomic.h	Thu May 24 22:06:00 2012	(r235942)
@@ -54,10 +54,10 @@
 #define __ATOMIC_REL()	__asm __volatile("lwsync" : : : "memory")
 #define __ATOMIC_ACQ()	__asm __volatile("lwsync" : : : "memory")
 #else
-#define mb()		__asm __volatile("isync" : : : "memory")
-#define rmb()		__asm __volatile("isync" : : : "memory")
-#define wmb()		__asm __volatile("isync" : : : "memory")
-#define __ATOMIC_REL()	__asm __volatile("isync" : : : "memory")
+#define mb()		__asm __volatile("sync" : : : "memory")
+#define rmb()		__asm __volatile("sync" : : : "memory")
+#define wmb()		__asm __volatile("sync : : : "memory")
+#define __ATOMIC_REL()	__asm __volatile("sync" : : : "memory")
 #define __ATOMIC_ACQ()	__asm __volatile("isync" : : : "memory")
 #endif
 



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