Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Oct 2019 10:50:17 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r353301 - head/sys/i386/include
Message-ID:  <201910081050.x98AoHlw002131@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Tue Oct  8 10:50:16 2019
New Revision: 353301
URL: https://svnweb.freebsd.org/changeset/base/353301

Log:
  i386: hide more of atomic 64-bit definitions under _KERNEL
  
  At the moment i386 does not provide 64-bit atomic operations in
  userland.  Exposing some atomic_*_64 defines can cause unnecessary
  confusion.
  
  Discussed with:	kib
  MFC after:	2 weeks

Modified:
  head/sys/i386/include/atomic.h

Modified: head/sys/i386/include/atomic.h
==============================================================================
--- head/sys/i386/include/atomic.h	Tue Oct  8 10:24:48 2019	(r353300)
+++ head/sys/i386/include/atomic.h	Tue Oct  8 10:50:16 2019	(r353301)
@@ -880,6 +880,7 @@ u_long	atomic_swap_long(volatile u_long *p, u_long v);
 #define	atomic_testandset_32	atomic_testandset_int
 #define	atomic_testandclear_32	atomic_testandclear_int
 
+#ifdef _KERNEL
 /* Operations on 64-bit quad words. */
 #define	atomic_cmpset_acq_64 atomic_cmpset_64
 #define	atomic_cmpset_rel_64 atomic_cmpset_64
@@ -893,6 +894,7 @@ u_long	atomic_swap_long(volatile u_long *p, u_long v);
 #define	atomic_subtract_rel_64 atomic_subtract_64
 #define	atomic_load_64 atomic_load_acq_64
 #define	atomic_store_64 atomic_store_rel_64
+#endif
 
 /* Operations on pointers. */
 #define	atomic_set_ptr(p, v) \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910081050.x98AoHlw002131>