/* return an image reference index based upon image address. */
UINT32 AddressToImageRef(IN UINTN Address)
/* return an image reference index based upon image address. */
UINT32 AddressToImageRef(IN UINTN Address)
{
  IMAGE_STRUCT  *ImageStruct;
  ImageStruct = AddressToImageStruct (Address);
  if (ImageStruct != NULL) {
    return ImageStruct->ImageRef;
  }
  return (UINT32)-1;
}