/* return an image structure based upon image address. */
IMAGE_STRUCT* AddressToImageStruct(IN UINTN Address)
/* return an image structure based upon image address. */
IMAGE_STRUCT* AddressToImageStruct(IN UINTN Address)
{
  UINTN  Index;
  for (Index = 0; Index < mImageStructCount; Index++) {
    if ((Address >= mImageStruct[Index].ImageBase) &&
        (Address < mImageStruct[Index].ImageBase + mImageStruct[Index].ImageSize))
    {
      return &mImageStruct[Index];
    }
  }
  return NULL;
}