]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Library/BaseLib.h
MdePkg/BaseLib: Add support for the XGETBV instruction
[mirror_edk2.git] / MdePkg / Include / Library / BaseLib.h
index 8e7b87cbda4e500ecbf56d1c5d59a69899a2c792..7edf0051a0a0c2360964bcf7f5e7216c75656772 100644 (file)
@@ -7831,6 +7831,23 @@ AsmLfence (
   VOID\r
   );\r
 \r
+/**\r
+  Executes a XGETBV instruction\r
+\r
+  Executes a XGETBV instruction. This function is only available on IA-32 and\r
+  x64.\r
+\r
+  @param[in] Index        Extended control register index\r
+\r
+  @return                 The current value of the extended control register\r
+**/\r
+UINT64\r
+EFIAPI\r
+AsmXGetBv (\r
+  IN UINT32  Index\r
+  );\r
+\r
+\r
 /**\r
   Patch the immediate operand of an IA32 or X64 instruction such that the byte,\r
   word, dword or qword operand is encoded at the end of the instruction's\r