From 0308c2bacb750890c17fe659d6d465bb6ad35345 Mon Sep 17 00:00:00 2001 From: andrew Date: Thu, 7 Nov 2019 17:21:17 +0000 Subject: [PATCH] Add the missing volatile qualifier in atomic_store_ptr MFC after: 1 week Sponsored by: DARPA, AFRL --- sys/sys/atomic_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) \