svn commit: r351190 - in head: share/man/man9 sys/i386/include

Konstantin Belousov kib at FreeBSD.org
Sun Aug 18 15:58:45 UTC 2019


Author: kib
Date: Sun Aug 18 15:58:44 2019
New Revision: 351190
URL: https://svnweb.freebsd.org/changeset/base/351190

Log:
  i386: Implement atomic_load_64(9) and atomic_store_64(9).
  
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week

Modified:
  head/share/man/man9/atomic.9
  head/sys/i386/include/atomic.h

Modified: head/share/man/man9/atomic.9
==============================================================================
--- head/share/man/man9/atomic.9	Sun Aug 18 15:37:19 2019	(r351189)
+++ head/share/man/man9/atomic.9	Sun Aug 18 15:58:44 2019	(r351190)
@@ -22,7 +22,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd December 22, 2017
+.Dd August 18, 2019
 .Dt ATOMIC 9
 .Os
 .Sh NAME
@@ -477,7 +477,7 @@ and do not have any variants with memory barriers at t
 .Pp
 The type
 .Dq Li 64
-is currently not implemented for any of the atomic operations on the
+is currently not implemented for some of the atomic operations on the
 .Tn arm ,
 .Tn i386 ,
 and

Modified: head/sys/i386/include/atomic.h
==============================================================================
--- head/sys/i386/include/atomic.h	Sun Aug 18 15:37:19 2019	(r351189)
+++ head/sys/i386/include/atomic.h	Sun Aug 18 15:58:44 2019	(r351190)
@@ -891,6 +891,8 @@ u_long	atomic_swap_long(volatile u_long *p, u_long v);
 #define	atomic_add_rel_64 atomic_add_64
 #define	atomic_subtract_acq_64 atomic_subtract_64
 #define	atomic_subtract_rel_64 atomic_subtract_64
+#define	atomic_load_64 atomic_load_acq_64
+#define	atomic_store_64 atomic_store_rel_64
 
 /* Operations on pointers. */
 #define	atomic_set_ptr(p, v) \


More information about the svn-src-all mailing list