Date: Sat, 29 Nov 2008 05:16:14 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r185427 - head/sys/mips/include Message-ID: <200811290516.mAT5GE2d039898@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: imp Date: Sat Nov 29 05:16:14 2008 New Revision: 185427 URL: http://svn.freebsd.org/changeset/base/185427 Log: Unbreak mips build by taking first WAG at mb(), wmb() and rmb(). The latter two are likely pessimal... Modified: head/sys/mips/include/atomic.h Modified: head/sys/mips/include/atomic.h ============================================================================== --- head/sys/mips/include/atomic.h Sat Nov 29 05:10:30 2008 (r185426) +++ head/sys/mips/include/atomic.h Sat Nov 29 05:16:14 2008 (r185427) @@ -51,6 +51,10 @@ mips_sync(void) : : : "memory"); } +#define mb() mips_sync() +#define wmb() mips_sync() +#define rmb() mips_sync() + /* * Various simple arithmetic on memory which is atomic in the presence * of interrupts and SMP safe.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811290516.mAT5GE2d039898>