/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/ |
D | PeCoffLoader.c | 38 IN OUT EFI_PEI_PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext, 45 IN OUT EFI_PEI_PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext, 53 IN OUT EFI_PEI_PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext 60 IN OUT EFI_PEI_PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext 67 IN OUT EFI_PEI_PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext 73 IN EFI_PEI_PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext 157 IN OUT EFI_PEI_PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext, in PeCoffLoaderGetPeHeader() argument 188 Status = ImageContext->ImageRead ( in PeCoffLoaderGetPeHeader() 189 ImageContext->Handle, in PeCoffLoaderGetPeHeader() 195 ImageContext->ImageError = EFI_IMAGE_ERROR_IMAGE_READ; in PeCoffLoaderGetPeHeader() [all …]
|
/device/linaro/bootloader/edk2/MdePkg/Library/BasePeCoffLib/ |
D | BasePeCoff.c | 96 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext, in PeCoffLoaderGetPeHeader() argument 117 Status = ImageContext->ImageRead ( in PeCoffLoaderGetPeHeader() 118 ImageContext->Handle, in PeCoffLoaderGetPeHeader() 124 ImageContext->ImageError = IMAGE_ERROR_IMAGE_READ; in PeCoffLoaderGetPeHeader() 131 ImageContext->PeCoffHeaderOffset = 0; in PeCoffLoaderGetPeHeader() 137 ImageContext->PeCoffHeaderOffset = DosHdr.e_lfanew; in PeCoffLoaderGetPeHeader() 148 Status = ImageContext->ImageRead ( in PeCoffLoaderGetPeHeader() 149 ImageContext->Handle, in PeCoffLoaderGetPeHeader() 150 ImageContext->PeCoffHeaderOffset, in PeCoffLoaderGetPeHeader() 155 ImageContext->ImageError = IMAGE_ERROR_IMAGE_READ; in PeCoffLoaderGetPeHeader() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePeCoffLib/ |
D | BasePeCoff.c | 67 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext, in GluePeCoffLoaderGetPeHeader() argument 80 Status = ImageContext->ImageRead ( in GluePeCoffLoaderGetPeHeader() 81 ImageContext->Handle, in GluePeCoffLoaderGetPeHeader() 87 ImageContext->ImageError = IMAGE_ERROR_IMAGE_READ; in GluePeCoffLoaderGetPeHeader() 91 ImageContext->PeCoffHeaderOffset = 0; in GluePeCoffLoaderGetPeHeader() 97 ImageContext->PeCoffHeaderOffset = DosHdr.e_lfanew; in GluePeCoffLoaderGetPeHeader() 107 Status = ImageContext->ImageRead ( in GluePeCoffLoaderGetPeHeader() 108 ImageContext->Handle, in GluePeCoffLoaderGetPeHeader() 109 ImageContext->PeCoffHeaderOffset, in GluePeCoffLoaderGetPeHeader() 114 ImageContext->ImageError = IMAGE_ERROR_IMAGE_READ; in GluePeCoffLoaderGetPeHeader() [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/ |
D | BasePeCoff.c | 31 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext, 39 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext, 47 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext, 78 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext, in PeCoffLoaderGetPeHeader() argument 107 ImageContext->IsTeImage = FALSE; in PeCoffLoaderGetPeHeader() 112 Status = ImageContext->ImageRead ( in PeCoffLoaderGetPeHeader() 113 ImageContext->Handle, in PeCoffLoaderGetPeHeader() 119 ImageContext->ImageError = IMAGE_ERROR_IMAGE_READ; in PeCoffLoaderGetPeHeader() 123 ImageContext->PeCoffHeaderOffset = 0; in PeCoffLoaderGetPeHeader() 128 ImageContext->PeCoffHeaderOffset = DosHdr.e_lfanew; in PeCoffLoaderGetPeHeader() [all …]
|
/device/linaro/bootloader/edk2/ArmPkg/Library/DebugPeCoffExtraActionLib/ |
D | DebugPeCoffExtraActionLib.c | 79 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext in PeCoffLoaderRelocateImageExtraAction() argument 86 if (ImageContext->PdbPointer) { in PeCoffLoaderRelocateImageExtraAction() 90 …p\n", DeCygwinPathIfNeeded (ImageContext->PdbPointer, Temp, sizeof (Temp)), (UINTN)(ImageContext->… in PeCoffLoaderRelocateImageExtraAction() 93 …p\n", DeCygwinPathIfNeeded (ImageContext->PdbPointer, Temp, sizeof (Temp)), (UINTN)(ImageContext->… in PeCoffLoaderRelocateImageExtraAction() 97 …p\n", DeCygwinPathIfNeeded (ImageContext->PdbPointer, Temp, sizeof (Temp)), (UINTN)(ImageContext->… in PeCoffLoaderRelocateImageExtraAction() 99 …0x%11p EntryPoint=0x%11p\n", (VOID *)(UINTN) ImageContext->ImageAddress, FUNCTION_ENTRY_POINT (Ima… in PeCoffLoaderRelocateImageExtraAction() 102 …0x%11p EntryPoint=0x%11p\n", (VOID *)(UINTN) ImageContext->ImageAddress, FUNCTION_ENTRY_POINT (Ima… in PeCoffLoaderRelocateImageExtraAction() 121 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext in PeCoffLoaderUnloadImageExtraAction() argument 128 if (ImageContext->PdbPointer) { in PeCoffLoaderUnloadImageExtraAction() 131 …DEBUG ((EFI_D_ERROR, "unload symbols_only %a\n", DeCygwinPathIfNeeded (ImageContext->PdbPointer, T… in PeCoffLoaderUnloadImageExtraAction() [all …]
|
/device/linaro/bootloader/edk2/IntelFsp2WrapperPkg/FspWrapperNotifyDxe/ |
D | LoadBelow4G.c | 49 PE_COFF_LOADER_IMAGE_CONTEXT ImageContext; in RelocateImageUnder4GIfNeeded() local 93 ImageContext.Handle = Buffer; in RelocateImageUnder4GIfNeeded() 94 ImageContext.ImageRead = PeCoffLoaderImageReadFromMemory; in RelocateImageUnder4GIfNeeded() 98 Status = PeCoffLoaderGetImageInfo (&ImageContext); in RelocateImageUnder4GIfNeeded() 100 if (ImageContext.SectionAlignment > EFI_PAGE_SIZE) { in RelocateImageUnder4GIfNeeded() 101 Pages = EFI_SIZE_TO_PAGES ((UINTN) (ImageContext.ImageSize + ImageContext.SectionAlignment)); in RelocateImageUnder4GIfNeeded() 103 Pages = EFI_SIZE_TO_PAGES ((UINTN) ImageContext.ImageSize); in RelocateImageUnder4GIfNeeded() 113 ImageContext.ImageAddress = (PHYSICAL_ADDRESS)(UINTN)FfsBuffer; in RelocateImageUnder4GIfNeeded() 117 ImageContext.ImageAddress += ImageContext.SectionAlignment - 1; in RelocateImageUnder4GIfNeeded() 118 ImageContext.ImageAddress &= ~((EFI_PHYSICAL_ADDRESS)(ImageContext.SectionAlignment - 1)); in RelocateImageUnder4GIfNeeded() [all …]
|
/device/linaro/bootloader/edk2/IntelFspWrapperPkg/FspNotifyDxe/ |
D | LoadBelow4G.c | 49 PE_COFF_LOADER_IMAGE_CONTEXT ImageContext; in RelocateImageUnder4GIfNeeded() local 93 ImageContext.Handle = Buffer; in RelocateImageUnder4GIfNeeded() 94 ImageContext.ImageRead = PeCoffLoaderImageReadFromMemory; in RelocateImageUnder4GIfNeeded() 98 Status = PeCoffLoaderGetImageInfo (&ImageContext); in RelocateImageUnder4GIfNeeded() 100 if (ImageContext.SectionAlignment > EFI_PAGE_SIZE) { in RelocateImageUnder4GIfNeeded() 101 Pages = EFI_SIZE_TO_PAGES ((UINTN) (ImageContext.ImageSize + ImageContext.SectionAlignment)); in RelocateImageUnder4GIfNeeded() 103 Pages = EFI_SIZE_TO_PAGES ((UINTN) ImageContext.ImageSize); in RelocateImageUnder4GIfNeeded() 113 ImageContext.ImageAddress = (PHYSICAL_ADDRESS)(UINTN)FfsBuffer; in RelocateImageUnder4GIfNeeded() 117 ImageContext.ImageAddress += ImageContext.SectionAlignment - 1; in RelocateImageUnder4GIfNeeded() 118 ImageContext.ImageAddress &= ~((EFI_PHYSICAL_ADDRESS)(ImageContext.SectionAlignment - 1)); in RelocateImageUnder4GIfNeeded() [all …]
|
/device/linaro/bootloader/edk2/EmulatorPkg/Unix/Host/ |
D | Host.c | 734 PE_COFF_LOADER_IMAGE_CONTEXT ImageContext; in SecPeCoffGetEntryPoint() local 736 ZeroMem (&ImageContext, sizeof (ImageContext)); in SecPeCoffGetEntryPoint() 737 ImageContext.Handle = Pe32Data; in SecPeCoffGetEntryPoint() 738 ImageContext.ImageRead = (PE_COFF_LOADER_READ_FILE) SecImageRead; in SecPeCoffGetEntryPoint() 740 Status = PeCoffLoaderGetImageInfo (&ImageContext); in SecPeCoffGetEntryPoint() 745 if (ImageContext.ImageAddress != (UINTN)Pe32Data) { in SecPeCoffGetEntryPoint() 749 ImageContext.ImageAddress = (UINTN)Pe32Data; in SecPeCoffGetEntryPoint() 750 Status = PeCoffLoaderLoadImage (&ImageContext); in SecPeCoffGetEntryPoint() 755 Status = PeCoffLoaderRelocateImage (&ImageContext); in SecPeCoffGetEntryPoint() 763 ImageContext.PdbPointer = PeCoffLoaderGetPdbPointer (Pe32Data); in SecPeCoffGetEntryPoint() [all …]
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/Ipf/ |
D | IpfBootSupport.c | 185 PE_COFF_LOADER_IMAGE_CONTEXT ImageContext; in RelocateImageUnder4GIfNeeded() local 213 ZeroMem (&ImageContext, sizeof (PE_COFF_LOADER_IMAGE_CONTEXT)); in RelocateImageUnder4GIfNeeded() 214 ImageContext.Handle = (VOID *)(UINTN)LoadedImageBase; in RelocateImageUnder4GIfNeeded() 215 ImageContext.ImageRead = PeCoffLoaderImageReadFromMemory; in RelocateImageUnder4GIfNeeded() 220 Status = PeCoffLoaderGetImageInfo (&ImageContext); in RelocateImageUnder4GIfNeeded() 224 ImageContext.ImageAddress = (PHYSICAL_ADDRESS)MemoryAddress; in RelocateImageUnder4GIfNeeded() 228 ImageContext.ImageAddress += ImageContext.SectionAlignment - 1; in RelocateImageUnder4GIfNeeded() 229 ImageContext.ImageAddress &= ~((PHYSICAL_ADDRESS)ImageContext.SectionAlignment - 1); in RelocateImageUnder4GIfNeeded() 234 Status = PeCoffLoaderLoadImage (&ImageContext); in RelocateImageUnder4GIfNeeded() 243 Status = PeCoffLoaderRelocateImage (&ImageContext); in RelocateImageUnder4GIfNeeded() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Pei/Image/ |
D | Image.c | 112 IN PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext in GetImageReadFunction() argument 134 ImageContext->ImageRead = Private->ShadowedImageRead; in GetImageReadFunction() 136 ImageContext->ImageRead = PeiImageRead; in GetImageReadFunction() 223 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext, in GetPeCoffImageFixLoadingAssignedAddress() argument 244 …ImgHdr = (EFI_IMAGE_OPTIONAL_HEADER_UNION *)((CHAR8* )ImageContext->Handle + ImageContext->PeCoffH… in GetPeCoffImageFixLoadingAssignedAddress() 245 if (ImageContext->IsTeImage) { in GetPeCoffImageFixLoadingAssignedAddress() 254 ImageContext->PeCoffHeaderOffset + in GetPeCoffImageFixLoadingAssignedAddress() 269 Status = ImageContext->ImageRead ( in GetPeCoffImageFixLoadingAssignedAddress() 270 ImageContext->Handle, in GetPeCoffImageFixLoadingAssignedAddress() 312 …kAndMarkFixLoadingMemoryUsageBitMap (Private, FixLoadingAddress, (UINT32) ImageContext->ImageSize); in GetPeCoffImageFixLoadingAssignedAddress() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/Image/ |
D | Image.c | 346 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext in GetPeCoffImageFixLoadingAssignedAddress() argument 365 Handle = (IMAGE_FILE_HANDLE*)ImageContext->Handle; in GetPeCoffImageFixLoadingAssignedAddress() 366 …ImgHdr = (EFI_IMAGE_OPTIONAL_HEADER_UNION *)((CHAR8* )Handle->Source + ImageContext->PeCoffHeaderO… in GetPeCoffImageFixLoadingAssignedAddress() 368 ImageContext->PeCoffHeaderOffset + in GetPeCoffImageFixLoadingAssignedAddress() 383 Status = ImageContext->ImageRead ( in GetPeCoffImageFixLoadingAssignedAddress() 384 ImageContext->Handle, in GetPeCoffImageFixLoadingAssignedAddress() 413 …ImageContext->ImageAddress = gLoadModuleAtFixAddressConfigurationTable.DxeCodeTopAddress + (INT64)… in GetPeCoffImageFixLoadingAssignedAddress() 418 …eckAndMarkFixLoadingMemoryUsageBitMap (ImageContext->ImageAddress, (UINTN)(ImageContext->ImageSize… in GetPeCoffImageFixLoadingAssignedAddress() 424 …ding module at fixed address 0x%11p. Status = %r \n", (VOID *)(UINTN)(ImageContext->ImageAddress),… in GetPeCoffImageFixLoadingAssignedAddress() 462 ZeroMem (&Image->ImageContext, sizeof (Image->ImageContext)); in CoreLoadPeImage() [all …]
|
/device/linaro/bootloader/edk2/Nt32Pkg/Library/DxeNt32PeCoffExtraActionLib/ |
D | DxeNt32PeCoffExtraActionLib.c | 150 IN PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext, in AddModHandle() argument 180 AsciiStrLen (ImageContext->PdbPointer) + 1 in AddModHandle() 185 AsciiStrCpy (Array->PdbPointer, ImageContext->PdbPointer); in AddModHandle() 216 return AddModHandle (ImageContext, ModHandle); in AddModHandle() 232 IN PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext in RemoveModeHandle() argument 238 if (ImageContext->PdbPointer == NULL) { in RemoveModeHandle() 247 …if ((Array->PdbPointer != NULL) && (AsciiStrCmp(Array->PdbPointer, ImageContext->PdbPointer) == 0)… in RemoveModeHandle() 274 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext in PeCoffLoaderRelocateImageExtraAction() argument 283 ASSERT (ImageContext != NULL); in PeCoffLoaderRelocateImageExtraAction() 303 if ((ImageContext->PdbPointer != NULL) && in PeCoffLoaderRelocateImageExtraAction() [all …]
|
/device/linaro/bootloader/edk2/ArmPkg/Library/RvdPeCoffExtraActionLib/ |
D | RvdPeCoffExtraActionLib.c | 117 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext in PeCoffLoaderRelocateImageExtraAction() argument 123 …), "load /a /ni /np \"%a\" &0x%08x\n", ImageContext->PdbPointer, (UINTN)(ImageContext->ImageAddres… in PeCoffLoaderRelocateImageExtraAction() 125 …uffer), "add-symbol-file %a 0x%08x\n", ImageContext->PdbPointer, (UINTN)(ImageContext->ImageAddres… in PeCoffLoaderRelocateImageExtraAction() 147 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext in PeCoffLoaderUnloadImageExtraAction() argument 152 AsciiSPrint (Buffer, sizeof(Buffer), "unload symbols_only \"%a\"\n", ImageContext->PdbPointer); in PeCoffLoaderUnloadImageExtraAction()
|
/device/linaro/bootloader/edk2/QuarkPlatformPkg/Acpi/Dxe/BootScriptExecutorDxe/ |
D | ScriptExecute.c | 170 PE_COFF_LOADER_IMAGE_CONTEXT ImageContext; in BootScriptExecutorEntryPoint() local 206 ImageContext.Handle = Buffer; in BootScriptExecutorEntryPoint() 207 ImageContext.ImageRead = PeCoffLoaderImageReadFromMemory; in BootScriptExecutorEntryPoint() 211 Status = PeCoffLoaderGetImageInfo (&ImageContext); in BootScriptExecutorEntryPoint() 215 Pages = EFI_SIZE_TO_PAGES(BufferSize + ImageContext.SectionAlignment); in BootScriptExecutorEntryPoint() 226 ImageContext.ImageAddress = (PHYSICAL_ADDRESS)(UINTN)FfsBuffer; in BootScriptExecutorEntryPoint() 230 ImageContext.ImageAddress += ImageContext.SectionAlignment - 1; in BootScriptExecutorEntryPoint() 231 ImageContext.ImageAddress &= ~(ImageContext.SectionAlignment - 1); in BootScriptExecutorEntryPoint() 235 Status = PeCoffLoaderLoadImage (&ImageContext); in BootScriptExecutorEntryPoint() 244 Status = PeCoffLoaderRelocateImage (&ImageContext); in BootScriptExecutorEntryPoint() [all …]
|
/device/linaro/bootloader/edk2/ArmPkg/Library/DebugAgentSymbolsBaseLib/ |
D | DebugAgentSymbolsBaseLib.c | 177 OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext in GetImageContext() argument 219 ZeroMem (ImageContext, sizeof (PE_COFF_LOADER_IMAGE_CONTEXT)); in GetImageContext() 220 ImageContext->Handle = EfiImage; in GetImageContext() 221 ImageContext->ImageRead = PeCoffLoaderImageReadFromMemory; in GetImageContext() 223 Status = PeCoffLoaderGetImageInfo (ImageContext); in GetImageContext() 224 if (!EFI_ERROR(Status) && ((VOID*)(UINTN)ImageContext->DebugDirectoryEntryRva != NULL)) { in GetImageContext() 225 ImageAddress = ImageContext->ImageAddress; in GetImageContext() 226 if (ImageContext->IsTeImage) { in GetImageContext() 230 …DebugEntry = (EFI_IMAGE_DEBUG_DIRECTORY_ENTRY*)(ImageAddress + ImageContext->DebugDirectoryEntryRv… in GetImageContext() 235 …ImageContext->PdbPointer = (CHAR8 *)CodeViewEntryPointer + sizeof (EFI_IMAGE_DEBUG_CODEVIEW_NB10_E… in GetImageContext() [all …]
|
/device/linaro/bootloader/edk2/SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/ |
D | PeCoffExtraActionLib.c | 51 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext, in PeCoffLoaderExtraActionCommon() argument 70 ASSERT (ImageContext != NULL); in PeCoffLoaderExtraActionCommon() 72 if (ImageContext->PdbPointer != NULL) { in PeCoffLoaderExtraActionCommon() 73 DEBUG((EFI_D_ERROR, " PDB = %a\n", ImageContext->PdbPointer)); in PeCoffLoaderExtraActionCommon() 131 AsmWriteDr1 ((UINTN) ImageContext->PdbPointer); in PeCoffLoaderExtraActionCommon() 132 AsmWriteDr2 ((UINTN) ImageContext); in PeCoffLoaderExtraActionCommon() 166 if (!IsDrxEnabled (1, NewDr7) && (AsmReadDr1 () == (UINTN) ImageContext->PdbPointer)) { in PeCoffLoaderExtraActionCommon() 169 if (!IsDrxEnabled (2, NewDr7) && (AsmReadDr2 () == (UINTN) ImageContext)) { in PeCoffLoaderExtraActionCommon() 209 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext in PeCoffLoaderRelocateImageExtraAction() argument 212 PeCoffLoaderExtraActionCommon (ImageContext, IMAGE_LOAD_SIGNATURE); in PeCoffLoaderRelocateImageExtraAction() [all …]
|
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkNorthCluster/S3Support/Dxe/ |
D | QncS3Support.c | 251 PE_COFF_LOADER_IMAGE_CONTEXT ImageContext; in LoadQncS3Image() local 285 ImageContext.Handle = Buffer; in LoadQncS3Image() 286 ImageContext.ImageRead = PeCoffLoaderImageReadFromMemory; in LoadQncS3Image() 291 Status = PeCoffLoaderGetImageInfo (&ImageContext); in LoadQncS3Image() 299 BufferSize + ImageContext.SectionAlignment, in LoadQncS3Image() 309 mQncS3ImageSize = BufferSize + ImageContext.SectionAlignment; in LoadQncS3Image() 317 ImageContext.ImageAddress = (PHYSICAL_ADDRESS)(UINTN)FfsBuffer; in LoadQncS3Image() 318 if (ImageContext.SectionAlignment != 0) { in LoadQncS3Image() 319 ImageContext.ImageAddress += ImageContext.SectionAlignment - 1; in LoadQncS3Image() 320 ImageContext.ImageAddress &= ~(ImageContext.SectionAlignment - 1); in LoadQncS3Image() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/ |
D | ScriptExecute.c | 273 PE_COFF_LOADER_IMAGE_CONTEXT ImageContext; in ReadyToLockEventNotify() local 303 ImageContext.Handle = Buffer; in ReadyToLockEventNotify() 304 ImageContext.ImageRead = PeCoffLoaderImageReadFromMemory; in ReadyToLockEventNotify() 308 Status = PeCoffLoaderGetImageInfo (&ImageContext); in ReadyToLockEventNotify() 310 if (ImageContext.SectionAlignment > EFI_PAGE_SIZE) { in ReadyToLockEventNotify() 311 Pages = EFI_SIZE_TO_PAGES ((UINTN) (ImageContext.ImageSize + ImageContext.SectionAlignment)); in ReadyToLockEventNotify() 313 Pages = EFI_SIZE_TO_PAGES ((UINTN) ImageContext.ImageSize); in ReadyToLockEventNotify() 323 ImageContext.ImageAddress = (PHYSICAL_ADDRESS)(UINTN)FfsBuffer; in ReadyToLockEventNotify() 327 ImageContext.ImageAddress += ImageContext.SectionAlignment - 1; in ReadyToLockEventNotify() 328 ImageContext.ImageAddress &= ~((EFI_PHYSICAL_ADDRESS)(ImageContext.SectionAlignment - 1)); in ReadyToLockEventNotify() [all …]
|
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/DxeHobPeCoffLib/ |
D | DxeHobPeCoff.c | 53 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext in PeCoffLoaderGetImageInfo() argument 56 return gPeCoffLoader->GetImageInfo (ImageContext); in PeCoffLoaderGetImageInfo() 93 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext in PeCoffLoaderRelocateImage() argument 96 return gPeCoffLoader->RelocateImage (ImageContext); in PeCoffLoaderRelocateImage() 133 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext in PeCoffLoaderLoadImage() argument 136 return gPeCoffLoader->LoadImage (ImageContext); in PeCoffLoaderLoadImage() 244 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext in PeCoffLoaderUnloadImage() argument 247 return gPeCoffLoader->UnloadImage (ImageContext); in PeCoffLoaderUnloadImage()
|
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/PrePiLib/ |
D | PrePiLib.c | 42 PE_COFF_LOADER_IMAGE_CONTEXT ImageContext; in LoadPeCoffImage() local 45 ZeroMem (&ImageContext, sizeof (ImageContext)); in LoadPeCoffImage() 47 ImageContext.Handle = PeCoffImage; in LoadPeCoffImage() 48 ImageContext.ImageRead = PeCoffLoaderImageReadFromMemory; in LoadPeCoffImage() 50 Status = PeCoffLoaderGetImageInfo (&ImageContext); in LoadPeCoffImage() 57 Buffer = AllocatePages (EFI_SIZE_TO_PAGES((UINT32)ImageContext.ImageSize)); in LoadPeCoffImage() 61 ImageContext.ImageAddress = (EFI_PHYSICAL_ADDRESS)(UINTN)Buffer; in LoadPeCoffImage() 66 Status = PeCoffLoaderLoadImage (&ImageContext); in LoadPeCoffImage() 72 Status = PeCoffLoaderRelocateImage (&ImageContext); in LoadPeCoffImage() 76 *ImageAddress = ImageContext.ImageAddress; in LoadPeCoffImage() [all …]
|
/device/linaro/bootloader/edk2/IntelFspWrapperPkg/FspWrapperSecCore/ |
D | FindPeiCore.c | 166 PE_COFF_LOADER_IMAGE_CONTEXT ImageContext; in FindAndReportEntryPoints() local 174 ZeroMem ((VOID *) &ImageContext, sizeof (PE_COFF_LOADER_IMAGE_CONTEXT)); in FindAndReportEntryPoints() 178 ImageContext.ImageAddress = SecCoreImageBase; in FindAndReportEntryPoints() 179 ImageContext.PdbPointer = PeCoffLoaderGetPdbPointer ((VOID*) (UINTN) ImageContext.ImageAddress); in FindAndReportEntryPoints() 180 PeCoffLoaderRelocateImageExtraAction (&ImageContext); in FindAndReportEntryPoints() 185 ImageContext.ImageAddress = PeiCoreImageBase; in FindAndReportEntryPoints() 186 ImageContext.PdbPointer = PeCoffLoaderGetPdbPointer ((VOID*) (UINTN) ImageContext.ImageAddress); in FindAndReportEntryPoints() 187 PeCoffLoaderRelocateImageExtraAction (&ImageContext); in FindAndReportEntryPoints()
|
/device/linaro/bootloader/edk2/IntelFspWrapperPkg/FspInitPei/ |
D | FindPeiCore.c | 166 PE_COFF_LOADER_IMAGE_CONTEXT ImageContext; in FindAndReportEntryPoints() local 174 ZeroMem ((VOID *) &ImageContext, sizeof (PE_COFF_LOADER_IMAGE_CONTEXT)); in FindAndReportEntryPoints() 178 ImageContext.ImageAddress = SecCoreImageBase; in FindAndReportEntryPoints() 179 ImageContext.PdbPointer = PeCoffLoaderGetPdbPointer ((VOID*) (UINTN) ImageContext.ImageAddress); in FindAndReportEntryPoints() 180 PeCoffLoaderRelocateImageExtraAction (&ImageContext); in FindAndReportEntryPoints() 185 ImageContext.ImageAddress = PeiCoreImageBase; in FindAndReportEntryPoints() 186 ImageContext.PdbPointer = PeCoffLoaderGetPdbPointer ((VOID*) (UINTN) ImageContext.ImageAddress); in FindAndReportEntryPoints() 187 PeCoffLoaderRelocateImageExtraAction (&ImageContext); in FindAndReportEntryPoints()
|
/device/linaro/bootloader/edk2/UefiCpuPkg/SecCore/ |
D | FindPeiCore.c | 166 PE_COFF_LOADER_IMAGE_CONTEXT ImageContext; in FindAndReportEntryPoints() local 174 ZeroMem ((VOID *) &ImageContext, sizeof (PE_COFF_LOADER_IMAGE_CONTEXT)); in FindAndReportEntryPoints() 178 ImageContext.ImageAddress = SecCoreImageBase; in FindAndReportEntryPoints() 179 ImageContext.PdbPointer = PeCoffLoaderGetPdbPointer ((VOID*) (UINTN) ImageContext.ImageAddress); in FindAndReportEntryPoints() 180 PeCoffLoaderRelocateImageExtraAction (&ImageContext); in FindAndReportEntryPoints() 185 ImageContext.ImageAddress = PeiCoreImageBase; in FindAndReportEntryPoints() 186 ImageContext.PdbPointer = PeCoffLoaderGetPdbPointer ((VOID*) (UINTN) ImageContext.ImageAddress); in FindAndReportEntryPoints() 187 PeCoffLoaderRelocateImageExtraAction (&ImageContext); in FindAndReportEntryPoints()
|
/device/linaro/bootloader/edk2/CorebootModulePkg/SecCore/ |
D | FindPeiCore.c | 166 PE_COFF_LOADER_IMAGE_CONTEXT ImageContext; in FindAndReportEntryPoints() local 174 ZeroMem ((VOID *) &ImageContext, sizeof (PE_COFF_LOADER_IMAGE_CONTEXT)); in FindAndReportEntryPoints() 178 ImageContext.ImageAddress = SecCoreImageBase; in FindAndReportEntryPoints() 179 ImageContext.PdbPointer = PeCoffLoaderGetPdbPointer ((VOID*) (UINTN) ImageContext.ImageAddress); in FindAndReportEntryPoints() 180 PeCoffLoaderRelocateImageExtraAction (&ImageContext); in FindAndReportEntryPoints() 185 ImageContext.ImageAddress = PeiCoreImageBase; in FindAndReportEntryPoints() 186 ImageContext.PdbPointer = PeCoffLoaderGetPdbPointer ((VOID*) (UINTN) ImageContext.ImageAddress); in FindAndReportEntryPoints() 187 PeCoffLoaderRelocateImageExtraAction (&ImageContext); in FindAndReportEntryPoints()
|
/device/linaro/bootloader/edk2/Nt32Pkg/Library/PeiNt32PeCoffExtraActionLib/ |
D | PeiNt32PeCoffExtraActionLib.c | 141 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext in PeCoffLoaderRelocateImageExtraAction() argument 149 ASSERT (ImageContext != NULL); in PeCoffLoaderRelocateImageExtraAction() 168 if ((ImageContext->PdbPointer != NULL) && in PeCoffLoaderRelocateImageExtraAction() 169 (ImageContext->Machine != EFI_IMAGE_MACHINE_EBC)) { in PeCoffLoaderRelocateImageExtraAction() 173 DllFileName = AsciiToUnicode (ImageContext->PdbPointer, &Index); in PeCoffLoaderRelocateImageExtraAction() 214 ImageContext->EntryPoint = (EFI_PHYSICAL_ADDRESS) (UINTN) DllEntryPoint; in PeCoffLoaderRelocateImageExtraAction() 246 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext in PeCoffLoaderUnloadImageExtraAction() argument 249 ASSERT (ImageContext != NULL); in PeCoffLoaderUnloadImageExtraAction()
|