/* The function will check if page table should be setup or not. */
BOOLEAN ToBuildPageTable(VOID)
/* The function will check if page table should be setup or not. */
BOOLEAN ToBuildPageTable(VOID)
{
  if (!IsIa32PaeSupport ()) {
    return FALSE;
  }
  if (IsNullDetectionEnabled ()) {
    return TRUE;
  }
  if (PcdGet8 (PcdHeapGuardPropertyMask) != 0) {
    return TRUE;
  }
  if (PcdGetBool (PcdCpuStackGuard)) {
    return TRUE;
  }
  if (IsEnableNonExecNeeded ()) {
    return TRUE;
  }
  return FALSE;
}