From owner-cvs-src-old@FreeBSD.ORG Tue Oct 6 23:48:43 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0AD071065697 for ; Tue, 6 Oct 2009 23:48:43 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id EC3668FC24 for ; Tue, 6 Oct 2009 23:48:42 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n96NmgAD057831 for ; Tue, 6 Oct 2009 23:48:42 GMT (envelope-from attilio@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n96NmgkI057830 for cvs-src-old@freebsd.org; Tue, 6 Oct 2009 23:48:42 GMT (envelope-from attilio@repoman.freebsd.org) Message-Id: <200910062348.n96NmgkI057830@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to attilio@repoman.freebsd.org using -f From: Attilio Rao Date: Tue, 6 Oct 2009 23:48:28 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/amd64/include atomic.h src/sys/i386/include atomic.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Oct 2009 23:48:43 -0000 attilio 2009-10-06 23:48:28 UTC FreeBSD src repository Modified files: sys/amd64/include atomic.h sys/i386/include atomic.h Log: SVN rev 197824 on 2009-10-06 23:48:28Z by attilio - All the functions in atomic.h needs to be in "physical" form (like not defined through macros or similar) in order to be later compiled in the kernel and offer this way the support for modules (and compatibility among the UP case and SMP case). Fix this for the newly introduced atomic_cmpset_barr_* cases by defining and specifying a template. Note that the new DEFINE_CMPSET_GEN() template save more typing on amd64 than the current code. [1] - Fix the style for memory barriers on amd64. [1] Reported by: Paul B. Mahol Revision Changes Path 1.48 +29 -46 src/sys/amd64/include/atomic.h 1.53 +50 -45 src/sys/i386/include/atomic.h