From owner-svn-src-user@FreeBSD.ORG Sat Nov 8 05:03:25 2008 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 793881065680 for ; Sat, 8 Nov 2008 05:03:25 +0000 (UTC) (envelope-from mat.macy@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.229]) by mx1.freebsd.org (Postfix) with ESMTP id 498868FC0A for ; Sat, 8 Nov 2008 05:03:25 +0000 (UTC) (envelope-from mat.macy@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1446408rvf.43 for ; Fri, 07 Nov 2008 21:03:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=HG34qFZaHwA7gbOczilQyxfcvqwsTordMfWuboZLODo=; b=QbK/pDCnyhw++JKJrwPgmaG7MImU9CSclBhsED2gJnZGTBVOI8MrEiXygcKFeq2WgW MfMAi02n17muyohFUSbEwFX4x+RuHzhBRFzEqXV140+B9vmkPqzJhnEdbyma+EejbxRn FXFp1vNvcJVwm4So7zN19/FT5nKfoeZEvRS9I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=pjOriBrwTBbu7pKL/W/SufI1VjKQmkvKM1GpYoC+GJPsue0rrygam5UUH4e+pgiaUj MmY9+wlM4DzrH5YyJoCEugUIzEUjXhC24eBINP4n2GU1wVBEwFkh9Q0sE7we4Iv/xeQ0 QGDn4uw8i+pUTQdovCNyCurUI7UpJQQv0vduM= Received: by 10.140.203.9 with SMTP id a9mr2195519rvg.252.1226119105879; Fri, 07 Nov 2008 20:38:25 -0800 (PST) Received: by 10.140.157.8 with HTTP; Fri, 7 Nov 2008 20:38:25 -0800 (PST) Message-ID: <3c1674c90811072038q1fd750c0t23073a2cc49f30dd@mail.gmail.com> Date: Sat, 8 Nov 2008 04:38:25 +0000 From: "Kip Macy" Sender: mat.macy@gmail.com To: "M. Warner Losh" In-Reply-To: <20081107.213326.-363916120.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200811080202.mA822D0W098283@svn.freebsd.org> <20081107.213326.-363916120.imp@bsdimp.com> X-Google-Sender-Auth: ff7a9b36318c4dc2 Cc: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: Re: svn commit: r184759 - user/kmacy/HEAD_fast_multi_xmit/sys/net X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Nov 2008 05:03:25 -0000 I doubt it, but would be happy to be proven incorrect. So ... yes, please. Cheers, Kip On Sat, Nov 8, 2008 at 4:33 AM, M. Warner Losh wrote: > In message: <200811080202.mA822D0W098283@svn.freebsd.org> > Kip Macy writes: > : +#if defined (__GNUC__) > : + #if #cpu(i386) || defined __i386 || defined i386 || defined __i386__ || #cpu(x86_64) || defined __x86_64__ > : + #define mb() __asm__ __volatile__ ("sfence;": : :"memory") > : + #elif #cpu(sparc64) || defined sparc64 || defined __sparcv9 > : + #define mb() __asm__ __volatile__ ("membar #MemIssue": : :"memory") > : + #elif #cpu(sparc) || defined sparc || defined __sparc__ > : + #define mb() __asm__ __volatile__ ("stbar;": : :"memory") > : + #else > : + #define mb() /* XXX just to make this compile */ > : + #endif > : +#else > : + #error "unknown compiler" > : +#endif > > I thought that gcc had a sequence that did this in a platform > independent way. should I dig it up for you? > > Warner > -- If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis