]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Library/BaseLib.h
MdePkg/BaseLib: Introduce new SpeculationBarrier API
[mirror_edk2.git] / MdePkg / Include / Library / BaseLib.h
index 8cc086983d5446e1c28e4f1563d85b0247eeb242..1eb842384ee26634cb1b8ea4ed8294cefddd8b98 100644 (file)
@@ -5111,6 +5111,21 @@ CpuDeadLoop (
   VOID\r
   );\r
 \r
+\r
+/**\r
+  Uses as a barrier to stop speculative execution.\r
+\r
+  Ensures that no later instruction will execute speculatively, until all prior\r
+  instructions have completed.\r
+\r
+**/\r
+VOID\r
+EFIAPI\r
+SpeculationBarrier (\r
+  VOID\r
+  );\r
+\r
+\r
 #if defined (MDE_CPU_IA32) || defined (MDE_CPU_X64)\r
 ///\r
 /// IA32 and x64 Specific Functions.\r