]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c
MdeModulePkg/Variable: Update to consume SpeculationBarrier
[mirror_edk2.git] / MdeModulePkg / Universal / Variable / RuntimeDxe / Variable.c
index d100b1dcc552b196409b400926cab54f553e36d2..443cf07144a1215bc8c37ce03ca77e9e2d11f41d 100644 (file)
@@ -3201,11 +3201,11 @@ VariableServiceSetVariable (
       return EFI_SECURITY_VIOLATION;\r
     }\r
     //\r
-    // The MemoryLoadFence() call here is to ensure the above sanity check\r
-    // for the EFI_VARIABLE_AUTHENTICATION_2 descriptor has been completed\r
+    // The VariableSpeculationBarrier() call here is to ensure the above sanity\r
+    // check for the EFI_VARIABLE_AUTHENTICATION_2 descriptor has been completed\r
     // before the execution of subsequent codes.\r
     //\r
-    MemoryLoadFence ();\r
+    VariableSpeculationBarrier ();\r
     PayloadSize = DataSize - AUTHINFO2_SIZE (Data);\r
   } else {\r
     PayloadSize = DataSize;\r