/* Reads and returns the current 16-bit LDTR descriptor value. This function is only available on IA-32 and X64. */
UINT16 EFIAPI AsmReadLdtr(VOID)
/* Reads and returns the current 16-bit LDTR descriptor value. This function is only available on IA-32 and X64. */
UINT16 EFIAPI AsmReadLdtr(VOID)
{
  UINT16  Data;
  __asm__ __volatile__ (
    "sldt  %0"
    : "=g" (Data)
  );
  return Data;
}