/* The function will check if Execute Disable Bit is available. */
BOOLEAN IsExecuteDisableBitAvailable(VOID)
/* The function will check if Execute Disable Bit is available. */
BOOLEAN IsExecuteDisableBitAvailable(VOID)
{
  UINT32   RegEax;
  UINT32   RegEdx;
  BOOLEAN  Available;
  Available = FALSE;
  AsmCpuid (0x80000000, &RegEax, NULL, NULL, NULL);
  if (RegEax >= 0x80000001) {
    AsmCpuid (0x80000001, NULL, NULL, NULL, &RegEdx);
    if ((RegEdx & BIT20) != 0) {
      Available = TRUE;
    }
  }
  return Available;
}