svn commit: r354451 - head/sys/sys

Andrew Turner andrew at FreeBSD.org
Thu Nov 7 17:21:18 UTC 2019


Author: andrew
Date: Thu Nov  7 17:21:17 2019
New Revision: 354451
URL: https://svnweb.freebsd.org/changeset/base/354451

Log:
  Add the missing volatile qualifier in atomic_store_ptr
  
  MFC after:	1 week
  Sponsored by:	DARPA, AFRL

Modified:
  head/sys/sys/atomic_common.h

Modified: head/sys/sys/atomic_common.h
==============================================================================
--- head/sys/sys/atomic_common.h	Thu Nov  7 17:14:59 2019	(r354450)
+++ head/sys/sys/atomic_common.h	Thu Nov  7 17:21:17 2019	(r354451)
@@ -58,7 +58,7 @@
 #define	atomic_store_long(p, v)		\
     (*(volatile u_long *)(p) = (u_long)(v))
 #define	atomic_store_ptr(p, v)		\
-    (*(uintptr_t *)(p) = (uintptr_t)(v))
+    (*(volatile uintptr_t *)(p) = (uintptr_t)(v))
 #define	atomic_store_8(p, v)		\
     (*(volatile uint8_t *)(p) = (uint8_t)(v))
 #define	atomic_store_16(p, v)		\


More information about the svn-src-head mailing list