From owner-svn-src-head@FreeBSD.ORG Wed Aug 21 20:43:51 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 21AF537B; Wed, 21 Aug 2013 20:43:51 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0AD4629AA; Wed, 21 Aug 2013 20:43:51 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r7LKho2t082709; Wed, 21 Aug 2013 20:43:50 GMT (envelope-from jkim@svn.freebsd.org) Received: (from jkim@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r7LKholk082707; Wed, 21 Aug 2013 20:43:50 GMT (envelope-from jkim@svn.freebsd.org) Message-Id: <201308212043.r7LKholk082707@svn.freebsd.org> From: Jung-uk Kim Date: Wed, 21 Aug 2013 20:43:50 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r254610 - in head/sys: amd64/include i386/include X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Aug 2013 20:43:51 -0000 Author: jkim Date: Wed Aug 21 20:43:50 2013 New Revision: 254610 URL: http://svnweb.freebsd.org/changeset/base/254610 Log: Use consistent style. No functional change. Modified: head/sys/amd64/include/atomic.h head/sys/i386/include/atomic.h Modified: head/sys/amd64/include/atomic.h ============================================================================== --- head/sys/amd64/include/atomic.h Wed Aug 21 20:38:19 2013 (r254609) +++ head/sys/amd64/include/atomic.h Wed Aug 21 20:43:50 2013 (r254610) @@ -183,9 +183,9 @@ atomic_fetchadd_int(volatile u_int *p, u __asm __volatile( " " MPLOCKED " " - " xaddl %0, %1 ; " + " xaddl %0,%1 ; " "# atomic_fetchadd_int" - : "+r" (v), /* 0 (result) */ + : "+r" (v), /* 0 */ "=m" (*p) /* 1 */ : "m" (*p) /* 2 */ : "cc"); @@ -202,9 +202,9 @@ atomic_fetchadd_long(volatile u_long *p, __asm __volatile( " " MPLOCKED " " - " xaddq %0, %1 ; " + " xaddq %0,%1 ; " "# atomic_fetchadd_long" - : "+r" (v), /* 0 (result) */ + : "+r" (v), /* 0 */ "=m" (*p) /* 1 */ : "m" (*p) /* 2 */ : "cc"); @@ -307,7 +307,7 @@ ATOMIC_STORE(long); #ifdef __GNUCLIKE_ASM static __inline u_int -atomic_readandclear_int(volatile u_int *addr) +atomic_readandclear_int(volatile u_int *p) { u_int res; @@ -316,14 +316,14 @@ atomic_readandclear_int(volatile u_int * " xchgl %1,%0 ; " "# atomic_readandclear_int" : "+r" (res), /* 0 */ - "=m" (*addr) /* 1 */ - : "m" (*addr)); + "=m" (*p) /* 1 */ + : "m" (*p)); return (res); } static __inline u_long -atomic_readandclear_long(volatile u_long *addr) +atomic_readandclear_long(volatile u_long *p) { u_long res; @@ -332,16 +332,16 @@ atomic_readandclear_long(volatile u_long " xchgq %1,%0 ; " "# atomic_readandclear_long" : "+r" (res), /* 0 */ - "=m" (*addr) /* 1 */ - : "m" (*addr)); + "=m" (*p) /* 1 */ + : "m" (*p)); return (res); } #else /* !__GNUCLIKE_ASM */ -u_int atomic_readandclear_int(volatile u_int *addr); -u_long atomic_readandclear_long(volatile u_long *addr); +u_int atomic_readandclear_int(volatile u_int *p); +u_long atomic_readandclear_long(volatile u_long *p); #endif /* __GNUCLIKE_ASM */ Modified: head/sys/i386/include/atomic.h ============================================================================== --- head/sys/i386/include/atomic.h Wed Aug 21 20:38:19 2013 (r254609) +++ head/sys/i386/include/atomic.h Wed Aug 21 20:43:50 2013 (r254610) @@ -272,9 +272,9 @@ atomic_fetchadd_int(volatile u_int *p, u __asm __volatile( " " MPLOCKED " " - " xaddl %0, %1 ; " + " xaddl %0,%1 ; " "# atomic_fetchadd_int" - : "+r" (v), /* 0 (result) */ + : "+r" (v), /* 0 */ "=m" (*p) /* 1 */ : "m" (*p) /* 2 */ : "cc"); @@ -397,7 +397,7 @@ atomic_fetchadd_long(volatile u_long *p, #ifdef __GNUCLIKE_ASM static __inline u_int -atomic_readandclear_int(volatile u_int *addr) +atomic_readandclear_int(volatile u_int *p) { u_int res; @@ -406,14 +406,14 @@ atomic_readandclear_int(volatile u_int * " xchgl %1,%0 ; " "# atomic_readandclear_int" : "+r" (res), /* 0 */ - "=m" (*addr) /* 1 */ - : "m" (*addr)); + "=m" (*p) /* 1 */ + : "m" (*p)); return (res); } static __inline u_long -atomic_readandclear_long(volatile u_long *addr) +atomic_readandclear_long(volatile u_long *p) { u_long res; @@ -422,16 +422,16 @@ atomic_readandclear_long(volatile u_long " xchgl %1,%0 ; " "# atomic_readandclear_long" : "+r" (res), /* 0 */ - "=m" (*addr) /* 1 */ - : "m" (*addr)); + "=m" (*p) /* 1 */ + : "m" (*p)); return (res); } #else /* !__GNUCLIKE_ASM */ -u_int atomic_readandclear_int(volatile u_int *addr); -u_long atomic_readandclear_long(volatile u_long *addr); +u_int atomic_readandclear_int(volatile u_int *p); +u_long atomic_readandclear_long(volatile u_long *p); #endif /* __GNUCLIKE_ASM */