From c9407be9eca2f96cfa84733bbe2b5ef5a811385c Mon Sep 17 00:00:00 2001 From: Marius Strobl Date: Sat, 22 May 2004 00:52:16 +0000 Subject: [PATCH] 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 --- sys/sparc64/include/atomic.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/sparc64/include/atomic.h b/sys/sparc64/include/atomic.h index 492ada06b1e..46804b53599 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);