Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Nov 2008 06:56:49 +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: r185163 - head/sys/ia64/include
Message-ID:  <200811220656.mAM6unB5009087@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marcel
Date: Sat Nov 22 06:56:49 2008
New Revision: 185163
URL: http://svn.freebsd.org/changeset/base/185163

Log:
  Define mb(), rmb() and wmb() for real.

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

Modified: head/sys/ia64/include/atomic.h
==============================================================================
--- head/sys/ia64/include/atomic.h	Sat Nov 22 05:55:56 2008	(r185162)
+++ head/sys/ia64/include/atomic.h	Sat Nov 22 06:56:49 2008	(r185163)
@@ -29,9 +29,9 @@
 #ifndef _MACHINE_ATOMIC_H_
 #define	_MACHINE_ATOMIC_H_
 
-#define	mb()
-#define	wmb()
-#define	rmb()
+#define	mb()	__asm __volatile("mf")
+#define	wmb()	mb()
+#define	rmb()	mb()
 
 /*
  * Various simple arithmetic on memory which is atomic in the presence



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