/* Reads and returns the current value of MM2. This function is only available on IA-32 and x64. */
UINT64 EFIAPI AsmReadMm2(VOID)
/* Reads and returns the current value of MM2. This function is only available on IA-32 and x64. */
UINT64 EFIAPI AsmReadMm2(VOID)
{
  _asm {
    push    eax
    push    eax
    movq    [esp], mm2
    pop     eax
    pop     edx
    emms
  }
}