svn commit: r313141 - head/sys/arm/include
Andrew Turner
andrew at FreeBSD.org
Fri Feb 3 10:04:18 UTC 2017
Author: andrew
Date: Fri Feb 3 10:04:17 2017
New Revision: 313141
URL: https://svnweb.freebsd.org/changeset/base/313141
Log:
Only define atomic_fcmpset_long in the kernel. We may include
machine/atomic.h in userspace, however atomic_fcmpset_32 is unimplemented
there.
Sponsored by: ABT Systems Ltd
Modified:
head/sys/arm/include/atomic-v4.h
Modified: head/sys/arm/include/atomic-v4.h
==============================================================================
--- head/sys/arm/include/atomic-v4.h Fri Feb 3 08:15:23 2017 (r313140)
+++ head/sys/arm/include/atomic-v4.h Fri Feb 3 10:04:17 2017 (r313141)
@@ -463,6 +463,8 @@ atomic_cmpset_long(volatile u_long *dst,
return (atomic_cmpset_32((volatile uint32_t *)dst, old, newe));
}
+#ifdef _KERNEL
+/* atomic_fcmpset_32 is only defined for the kernel */
static __inline u_long
atomic_fcmpset_long(volatile u_long *dst, u_long *old, u_long newe)
{
@@ -470,6 +472,7 @@ atomic_fcmpset_long(volatile u_long *dst
return (atomic_fcmpset_32((volatile uint32_t *)dst,
(uint32_t *)old, newe));
}
+#endif
static __inline u_long
atomic_fetchadd_long(volatile u_long *p, u_long v)
More information about the svn-src-head
mailing list