/* Executes an MWAIT instruction with the register state specified by Eax and Ecx. Returns Eax. This function is only available on IA-32 and X64. */
UINTN EFIAPI AsmMwait(IN UINTN Eax, IN UINTN Ecx)
/* Executes an MWAIT instruction with the register state specified by Eax and Ecx. Returns Eax. This function is only available on IA-32 and X64. */
UINTN EFIAPI AsmMwait(IN UINTN Eax, IN UINTN Ecx)
{
  __asm__ __volatile__ (
    "mwait"
    :
    : "a"  (Eax),
      "c"  (Ecx)
  );
  return Eax;
}