summaryrefslogtreecommitdiffstats
path: root/sys/cddl/compat/opensolaris/kern/opensolaris_atomic.c
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2014-08-11 02:20:24 +0000
committerian <ian@FreeBSD.org>2014-08-11 02:20:24 +0000
commit6b999dff3e159c3cb1559a30c663435c3265807b (patch)
treed732f48bb7ec4608a3f5ca242d03181e7f091bde /sys/cddl/compat/opensolaris/kern/opensolaris_atomic.c
parent8067096dad03c7d9e39793e2c65fd2b67a2b1727 (diff)
downloadFreeBSD-src-6b999dff3e159c3cb1559a30c663435c3265807b.zip
FreeBSD-src-6b999dff3e159c3cb1559a30c663435c3265807b.tar.gz
MFC r269403, r269405, r269410, r269414:
Add 64-bit atomic ops for armv6, and also for armv4 only in kernel code. Use the new ops in the cddl code (and avoid defining functions with the same names locally).
Diffstat (limited to 'sys/cddl/compat/opensolaris/kern/opensolaris_atomic.c')
-rw-r--r--sys/cddl/compat/opensolaris/kern/opensolaris_atomic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cddl/compat/opensolaris/kern/opensolaris_atomic.c b/sys/cddl/compat/opensolaris/kern/opensolaris_atomic.c
index 4aba9ea..8a0fdf3 100644
--- a/sys/cddl/compat/opensolaris/kern/opensolaris_atomic.c
+++ b/sys/cddl/compat/opensolaris/kern/opensolaris_atomic.c
@@ -52,7 +52,7 @@ atomic_init(void)
}
#endif
-#if !defined(__LP64__) && !defined(__mips_n32)
+#if !defined(__LP64__) && !defined(__mips_n32) && !defined(ARM_HAVE_ATOMIC64)
void
atomic_add_64(volatile uint64_t *target, int64_t delta)
{
OpenPOWER on IntegriCloud