]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c
UefiCpuPkg/PiSmmCpuDxeSmm: Update to consume SpeculationBarrier
[mirror_edk2.git] / UefiCpuPkg / PiSmmCpuDxeSmm / PiSmmCpuDxeSmm.c
index 19979d5418e85dabac919c3268136b4de975b70d..8c9fa14b5b3e21b2bfc9cc631768541e9fc84a72 100644 (file)
@@ -238,10 +238,10 @@ SmmReadSaveState (
     return EFI_INVALID_PARAMETER;\r
   }\r
   //\r
-  // The AsmLfence() call here is to ensure the above check for the CpuIndex\r
-  // has been completed before the execution of subsequent codes.\r
+  // The SpeculationBarrier() call here is to ensure the above check for the\r
+  // CpuIndex has been completed before the execution of subsequent codes.\r
   //\r
-  AsmLfence ();\r
+  SpeculationBarrier ();\r
 \r
   //\r
   // Check for special EFI_SMM_SAVE_STATE_REGISTER_PROCESSOR_ID\r