diff options
author | marius <marius@FreeBSD.org> | 2004-05-22 00:52:16 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2004-05-22 00:52:16 +0000 |
commit | bfe60a0967a0900468f48ce05cad5f615e806997 (patch) | |
tree | 1110cf4ed64048f40330da32ccc16d25f0a1c2ac /sys | |
parent | 3d05426c11b272b4a4df85b74123d71223ceb9ff (diff) | |
download | FreeBSD-src-bfe60a0967a0900468f48ce05cad5f615e806997.zip FreeBSD-src-bfe60a0967a0900468f48ce05cad5f615e806997.tar.gz |
Use unsigned types for the arguments of the atomic(9) operations,
like described in the man page and done on all other architectures.
OK'ed by: tmm
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sparc64/include/atomic.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/sparc64/include/atomic.h b/sys/sparc64/include/atomic.h index 492ada0..46804b5 100644 --- a/sys/sparc64/include/atomic.h +++ b/sys/sparc64/include/atomic.h @@ -269,11 +269,11 @@ atomic_store_rel_ ## name(volatile ptype p, vtype v) \ atomic_store_rel(p, v, sz); \ } -ATOMIC_GEN(int, int *, int, int, 32); -ATOMIC_GEN(32, int *, int, int, 32); +ATOMIC_GEN(int, u_int *, u_int, u_int, 32); +ATOMIC_GEN(32, uint32_t *, uint32_t, uint32_t, 32); -ATOMIC_GEN(long, long *, long, long, 64); -ATOMIC_GEN(64, long *, long, long, 64); +ATOMIC_GEN(long, u_long *, u_long, u_long, 64); +ATOMIC_GEN(64, uint64_t *, uint64_t, uint64_t, 64); ATOMIC_GEN(ptr, void *, void *, uintptr_t, 64); |