/* Return the count of Smm memory map entry. */
UINTN GetSmmMemoryMapEntryCount(VOID)
/* Return the count of Smm memory map entry. */
UINTN GetSmmMemoryMapEntryCount(VOID)
{
  LIST_ENTRY  *Link;
  UINTN       Count;
  Count = 0;
  Link  = gMemoryMap.ForwardLink;
  while (Link != &gMemoryMap) {
    Link = Link->ForwardLink;
    Count++;
  }
  return Count;
}