summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2013-08-21 20:43:50 +0000
committerjkim <jkim@FreeBSD.org>2013-08-21 20:43:50 +0000
commit2deff14808c0699b4f286eef70fe78f5309984b3 (patch)
tree51bc28f14a9a725b68aff21bdd0977f2dbabc102 /sys/amd64
parent785cc185f4a7f3df9ae434828b04a0ef7d987b83 (diff)
downloadFreeBSD-src-2deff14808c0699b4f286eef70fe78f5309984b3.zip
FreeBSD-src-2deff14808c0699b4f286eef70fe78f5309984b3.tar.gz
Use consistent style. No functional change.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/include/atomic.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/sys/amd64/include/atomic.h b/sys/amd64/include/atomic.h
index 91c33e6..d0d8ecb 100644
--- a/sys/amd64/include/atomic.h
+++ b/sys/amd64/include/atomic.h
@@ -183,9 +183,9 @@ atomic_fetchadd_int(volatile u_int *p, u_int v)
__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, u_long v)
__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 *addr)
" 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 *addr)
" 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 */
OpenPOWER on IntegriCloud