/* Returns whether we are currently executing in SMM mode.  */
STATIC BOOLEAN IsInSmm(VOID)
/* Returns whether we are currently executing in SMM mode.  */
STATIC BOOLEAN IsInSmm(VOID)
{
  BOOLEAN  InSmm;
  InSmm = FALSE;
  if (gSmmBase2 != NULL) {
    gSmmBase2->InSmm (gSmmBase2, &InSmm);
  }
  return InSmm;
}