From c072f4f3c4b540c7cfebec563b0fb5d7ba932b6f Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sat, 24 Aug 2019 12:24:46 +0000 Subject: Explicitly opt-in to READ_ONCE/WRITE_ONCE semantics We mark all atomic variables as volatile and have our atomic accessors built around that. We probably, therefore, want Linux-style READ/WRITE_ONCE semantics of implying memory barriers. /volatile:ms does this automatically. This was already the default on amd64 and x86 but not on ARM. Signed-off-by: Jason A. Donenfeld Reported-by: Lev Stipakov --- wintun.vcxproj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wintun.vcxproj b/wintun.vcxproj index c70f032..3bb61d1 100644 --- a/wintun.vcxproj +++ b/wintun.vcxproj @@ -125,6 +125,7 @@ NDIS_MINIPORT_DRIVER=1;NDIS620_MINIPORT=1;NDIS683_MINIPORT=1;NDIS_WDM=1;%(PreprocessorDefinitions) + /volatile:ms %(AdditionalOptions) true @@ -175,4 +176,4 @@ - \ No newline at end of file + -- cgit v1.2.3-59-g8ed1b