/* Writes and the current LDTR descriptor specified by Ldtr. This function is only available on IA-32 and x64. */
VOID EFIAPI AsmWriteLdtr(IN UINT16 Ldtr)
/* Writes and the current LDTR descriptor specified by Ldtr. This function is only available on IA-32 and x64. */
VOID EFIAPI AsmWriteLdtr(IN UINT16 Ldtr)
{
  _asm {
    xor     eax, eax
    mov     ax, Ldtr
    lldt    ax
  }
}