aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/atomic_common.h
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2019-11-07 17:21:17 +0000
committerAndrew Turner <andrew@FreeBSD.org>2019-11-07 17:21:17 +0000
commit542c56ea9a11533f1631961cb14f524fc725434e (patch)
tree029f9e19604408a2a909738b2d707ebc6f3f9fd7 /sys/sys/atomic_common.h
parent5e5ceb11cbac73319056c37026d276ccf265b190 (diff)
downloadsrc-542c56ea9a11533f1631961cb14f524fc725434e.tar.gz
src-542c56ea9a11533f1631961cb14f524fc725434e.zip
Add the missing volatile qualifier in atomic_store_ptr
MFC after: 1 week Sponsored by: DARPA, AFRL
Notes
Notes: svn path=/head/; revision=354451
Diffstat (limited to 'sys/sys/atomic_common.h')
-rw-r--r--sys/sys/atomic_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/atomic_common.h b/sys/sys/atomic_common.h
index 9aa30fa24a27..889d491cc1af 100644
--- a/sys/sys/atomic_common.h
+++ b/sys/sys/atomic_common.h
@@ -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) \