From 59fa025292de3a650512f9232dfb9fb7bfa43a04 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 28 Dec 2017 15:41:37 +1100 Subject: [PATCH] [host] add store fence to shm writes as we are using writecombine --- host/Service.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/host/Service.cpp b/host/Service.cpp index 81ccaf60..a4d9f1e2 100644 --- a/host/Service.cpp +++ b/host/Service.cpp @@ -292,6 +292,7 @@ bool Service::Process() // update the flags INTERLOCKED_AND8((volatile char *)flags, KVMFR_HEADER_FLAG_RESTART); INTERLOCKED_OR8 ((volatile char *)flags, updateFlags); + _mm_sfence(); return true; } \ No newline at end of file