From owner-svn-src-all@FreeBSD.ORG Sat Nov 29 05:16:14 2008 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D9CEA106564A; Sat, 29 Nov 2008 05:16:14 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id C0BFF8FC14; Sat, 29 Nov 2008 05:16:14 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mAT5GEph039899; Sat, 29 Nov 2008 05:16:14 GMT (envelope-from imp@svn.freebsd.org) Received: (from imp@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mAT5GE2d039898; Sat, 29 Nov 2008 05:16:14 GMT (envelope-from imp@svn.freebsd.org) Message-Id: <200811290516.mAT5GE2d039898@svn.freebsd.org> From: Warner Losh Date: Sat, 29 Nov 2008 05:16:14 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r185427 - head/sys/mips/include X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Nov 2008 05:16:15 -0000 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.