diff options
author | pjd <pjd@FreeBSD.org> | 2008-03-19 07:27:24 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2008-03-19 07:27:24 +0000 |
commit | 2023a8c5fd1af947310dcb9ad7c90b81f08de092 (patch) | |
tree | bf9a761e2fd01f3cfbd2aeb5f289e1d709e378d7 /sys/sparc64/include | |
parent | ea2b75bd30555912031e1c807fe6070bdaff5058 (diff) | |
download | FreeBSD-src-2023a8c5fd1af947310dcb9ad7c90b81f08de092.zip FreeBSD-src-2023a8c5fd1af947310dcb9ad7c90b81f08de092.tar.gz |
Oops. Use atomic_add_long() for atomic_fetchadd_long() (not atomic_add_int())
for sparc64 and sun4v.
Noticed by: marius
Diffstat (limited to 'sys/sparc64/include')
-rw-r--r-- | sys/sparc64/include/atomic.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/sparc64/include/atomic.h b/sys/sparc64/include/atomic.h index 61b7ade..fe36791 100644 --- a/sys/sparc64/include/atomic.h +++ b/sys/sparc64/include/atomic.h @@ -279,8 +279,7 @@ ATOMIC_GEN(ptr, uintptr_t *, uintptr_t, uintptr_t, 64); #define atomic_fetchadd_int atomic_add_int #define atomic_fetchadd_32 atomic_add_32 -#define atomic_fetchadd_long(p, v) \ - (u_long)atomic_add_int((volatile u_int *)(p), (u_int)(v)) +#define atomic_fetchadd_long atomic_add_long #undef ATOMIC_GEN #undef atomic_cas |