72 if (!ImageEntryMatched ||
74 LogFileAscii(
"%a: Unable to find image HANDLE=%08x FilePath=%a Name=%a\r\n",
81 if (ImageEntry->
Crc32 != ImageEntryMatched->
Crc32)
83 LogFileAscii(
"Image HANDLE=%08x ##### MISMATCHED CRC ##### %08x -> %08x\r\n",
86 ImageEntryMatched->
Crc32);
89 LogFileAscii(
"1ST ENTRY -> Index=%08x Handle=%08x ImageBase=%016lx ImageSize=%08llx Crc32=%08x Name=%a FilePath=%a\r\n",
97 LogFileAscii(
"2ND ENTRY -> Index=%08x Handle=%08x ImageBase=%016lx ImageSize=%08llx Crc32=%08x Name=%a FilePath=%a\r\n",
102 ImageEntryMatched->
Crc32,
103 ImageEntryMatched->
Name,
129 IN EFI_HANDLE ImageHandle,
152 IN BOOLEAN BootPolicy,
153 IN EFI_HANDLE ParentImageHandle,
154 IN EFI_DEVICE_PATH_PROTOCOL *DevicePath,
157 OUT EFI_HANDLE *ImageHandle
162 EFI_LOADED_IMAGE_PROTOCOL *LoadedImageProto;
164 CHAR16 DmpFilePath[512];
176 if (!EFI_ERROR(Status))
189 if (!EFI_ERROR(Status))
192 LogFileAscii(
"%a: Sniffed LoadedImage, handle=%08x, imagebase=%016lx!\r\n",
195 (
MAX_PTR)LoadedImageProto->ImageBase);
198 UnicodeSPrint(DmpFilePath,
sizeof(DmpFilePath)-1, L
"sdump\\%p.dmp",
199 LoadedImageProto->ImageBase);
201 LogFileAscii(
"%a: Dumping to %s\r\n", __FUNCTION__, DmpFilePath);
204 (UINTN)LoadedImageProto->ImageSize,
250 if (UserNewImageCallback)
252 if (UserModImageCallback)
261 LogFullAscii(
"%a: error executing GetAllImagesWithDescription\r\n",
263 return EFI_NOT_FOUND;
267 Status = gBS->CreateEvent(EVT_SIGNAL_EXIT_BOOT_SERVICES,
273 if (EFI_ERROR(Status))
275 LogFullAscii(
"%a: unable to create event, status = %08x\r\n",
276 __FUNCTION__, Status);
279 return EFI_NOT_FOUND;