Home
last modified time | relevance | path

Searched refs:SectionAlignment (Results 1 – 25 of 36) sorted by relevance

12

/device/linaro/bootloader/edk2/IntelFspWrapperPkg/FspNotifyDxe/
DLoadBelow4G.c100 if (ImageContext.SectionAlignment > EFI_PAGE_SIZE) { in RelocateImageUnder4GIfNeeded()
101 Pages = EFI_SIZE_TO_PAGES ((UINTN) (ImageContext.ImageSize + ImageContext.SectionAlignment)); in RelocateImageUnder4GIfNeeded()
117 ImageContext.ImageAddress += ImageContext.SectionAlignment - 1; in RelocateImageUnder4GIfNeeded()
118 ImageContext.ImageAddress &= ~((EFI_PHYSICAL_ADDRESS)(ImageContext.SectionAlignment - 1)); in RelocateImageUnder4GIfNeeded()
/device/linaro/bootloader/edk2/IntelFsp2WrapperPkg/FspWrapperNotifyDxe/
DLoadBelow4G.c100 if (ImageContext.SectionAlignment > EFI_PAGE_SIZE) { in RelocateImageUnder4GIfNeeded()
101 Pages = EFI_SIZE_TO_PAGES ((UINTN) (ImageContext.ImageSize + ImageContext.SectionAlignment)); in RelocateImageUnder4GIfNeeded()
117 ImageContext.ImageAddress += ImageContext.SectionAlignment - 1; in RelocateImageUnder4GIfNeeded()
118 ImageContext.ImageAddress &= ~((EFI_PHYSICAL_ADDRESS)(ImageContext.SectionAlignment - 1)); in RelocateImageUnder4GIfNeeded()
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkNorthCluster/S3Support/Dxe/
DQncS3Support.c299 BufferSize + ImageContext.SectionAlignment, in LoadQncS3Image()
309 mQncS3ImageSize = BufferSize + ImageContext.SectionAlignment; 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()
/device/linaro/bootloader/edk2/BaseTools/Source/Python/GenFds/
DDataSection.py80 if ImageObj.SectionAlignment < 0x400:
81 self.Alignment = str (ImageObj.SectionAlignment)
83 self.Alignment = str (ImageObj.SectionAlignment / 0x400) + 'K'
DEfiSection.py232 if ImageObj.SectionAlignment < 0x400:
233 Align = str (ImageObj.SectionAlignment)
235 Align = str (ImageObj.SectionAlignment / 0x400) + 'K'
DFfsInfStatement.py729 if ImageObj.SectionAlignment < 0x400:
730 self.Alignment = str (ImageObj.SectionAlignment)
732 self.Alignment = str (ImageObj.SectionAlignment / 0x400) + 'K'
768 if ImageObj.SectionAlignment < 0x400:
769 self.Alignment = str (ImageObj.SectionAlignment)
771 self.Alignment = str (ImageObj.SectionAlignment / 0x400) + 'K'
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/
DScriptExecute.c310 if (ImageContext.SectionAlignment > EFI_PAGE_SIZE) { in ReadyToLockEventNotify()
311 Pages = EFI_SIZE_TO_PAGES ((UINTN) (ImageContext.ImageSize + ImageContext.SectionAlignment)); in ReadyToLockEventNotify()
327 ImageContext.ImageAddress += ImageContext.SectionAlignment - 1; in ReadyToLockEventNotify()
328 ImageContext.ImageAddress &= ~((EFI_PHYSICAL_ADDRESS)(ImageContext.SectionAlignment - 1)); in ReadyToLockEventNotify()
/device/linaro/bootloader/edk2/QuarkPlatformPkg/Acpi/Dxe/BootScriptExecutorDxe/
DScriptExecute.c215 Pages = EFI_SIZE_TO_PAGES(BufferSize + ImageContext.SectionAlignment); in BootScriptExecutorEntryPoint()
230 ImageContext.ImageAddress += ImageContext.SectionAlignment - 1; in BootScriptExecutorEntryPoint()
231 ImageContext.ImageAddress &= ~(ImageContext.SectionAlignment - 1); in BootScriptExecutorEntryPoint()
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/Ipf/
DIpfBootSupport.c228 ImageContext.ImageAddress += ImageContext.SectionAlignment - 1; in RelocateImageUnder4GIfNeeded()
229 ImageContext.ImageAddress &= ~((PHYSICAL_ADDRESS)ImageContext.SectionAlignment - 1); in RelocateImageUnder4GIfNeeded()
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/Misc/
DPropertiesTable.c824 IN UINT32 SectionAlignment in SetPropertiesTableSectionAlignment() argument
827 if (((SectionAlignment & (EFI_ACPI_RUNTIME_PAGE_ALLOCATION_ALIGNMENT - 1)) != 0) && in SetPropertiesTableSectionAlignment()
1087 UINT32 SectionAlignment; in InsertImageRecord() local
1155 SectionAlignment = Hdr.Pe32->OptionalHeader.SectionAlignment; in InsertImageRecord()
1157 SectionAlignment = Hdr.Pe32Plus->OptionalHeader.SectionAlignment; in InsertImageRecord()
1160 SetPropertiesTableSectionAlignment (SectionAlignment); in InsertImageRecord()
1161 if ((SectionAlignment & (EFI_ACPI_RUNTIME_PAGE_ALLOCATION_ALIGNMENT - 1)) != 0) { in InsertImageRecord()
1163 SectionAlignment, EFI_ACPI_RUNTIME_PAGE_ALLOCATION_ALIGNMENT >> 10)); in InsertImageRecord()
/device/linaro/bootloader/edk2/MdeModulePkg/Core/PiSmmCore/
DMemoryAttributesTable.c795 IN UINT32 SectionAlignment in SetMemoryAttributesTableSectionAlignment() argument
798 if (((SectionAlignment & (EFI_ACPI_RUNTIME_PAGE_ALLOCATION_ALIGNMENT - 1)) != 0) && in SetMemoryAttributesTableSectionAlignment()
1055 UINT32 SectionAlignment; in SmmInsertImageRecord() local
1122 SectionAlignment = Hdr.Pe32->OptionalHeader.SectionAlignment; in SmmInsertImageRecord()
1124 SectionAlignment = Hdr.Pe32Plus->OptionalHeader.SectionAlignment; in SmmInsertImageRecord()
1127 SetMemoryAttributesTableSectionAlignment (SectionAlignment); in SmmInsertImageRecord()
1128 if ((SectionAlignment & (EFI_ACPI_RUNTIME_PAGE_ALLOCATION_ALIGNMENT - 1)) != 0) { in SmmInsertImageRecord()
1130 SectionAlignment, EFI_ACPI_RUNTIME_PAGE_ALLOCATION_ALIGNMENT >> 10)); in SmmInsertImageRecord()
DDispatcher.c282 …UsageBitMap (FixLoadingAddress, (UINTN)(ImageContext->ImageSize + ImageContext->SectionAlignment)); in GetPeCoffImageFixLoadingAssignedAddress()
483 …ageCount = (UINTN)EFI_SIZE_TO_PAGES((UINTN)ImageContext.ImageSize + ImageContext.SectionAlignment); in SmmLoadImage()
501 …ageCount = (UINTN)EFI_SIZE_TO_PAGES((UINTN)ImageContext.ImageSize + ImageContext.SectionAlignment); in SmmLoadImage()
522 ImageContext.ImageAddress += ImageContext.SectionAlignment - 1; in SmmLoadImage()
523 ImageContext.ImageAddress &= ~((EFI_PHYSICAL_ADDRESS)(ImageContext.SectionAlignment - 1)); in SmmLoadImage()
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Pei/Image/
DImage.c445 if (ImageContext.SectionAlignment > EFI_PAGE_SIZE) { in LoadAndRelocatePeCoffImage()
446 AlignImageSize += ImageContext.SectionAlignment; in LoadAndRelocatePeCoffImage()
465 if (ImageContext.SectionAlignment > EFI_PAGE_SIZE) { in LoadAndRelocatePeCoffImage()
467 (ImageContext.ImageAddress + ImageContext.SectionAlignment - 1) & in LoadAndRelocatePeCoffImage()
468 ~((UINTN)ImageContext.SectionAlignment - 1); in LoadAndRelocatePeCoffImage()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePeCoffLib/
DBasePeCoff.c126 ImageContext->SectionAlignment = 4096; in GluePeCoffLoaderGetPeHeader()
141 ImageContext->SectionAlignment = Hdr.Pe32->OptionalHeader.SectionAlignment; in GluePeCoffLoaderGetPeHeader()
150 ImageContext->SectionAlignment = Hdr.Pe32Plus->OptionalHeader.SectionAlignment; in GluePeCoffLoaderGetPeHeader()
419 … ImageContext->SectionAlignment - 1) & ~(ImageContext->SectionAlignment - 1); in GluePeCoffLoaderGetImageInfo()
841 if ((ImageContext->ImageAddress & (CheckContext.SectionAlignment - 1)) != 0) { in GluePeCoffLoaderLoadImage()
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/
DBasePeCoff.c349 ImageContext->SectionAlignment = OptionHeader.Optional32->SectionAlignment; in PeCoffLoaderGetImageInfo()
362 ImageContext->SectionAlignment = OptionHeader.Optional64->SectionAlignment; in PeCoffLoaderGetImageInfo()
446 ImageContext->SectionAlignment = 4096; in PeCoffLoaderGetImageInfo()
502 … ImageContext->SectionAlignment - 1) & ~(ImageContext->SectionAlignment - 1); in PeCoffLoaderGetImageInfo()
944 if ((ImageContext->ImageAddress & (CheckContext.SectionAlignment - 1)) != 0) { in PeCoffLoaderLoadImage()
DPeCoffLib.h58 UINT32 SectionAlignment; member
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Guid/PeiPeCoffLoader/
DPeiPeCoffLoader.h61 UINT32 SectionAlignment; member
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/Image/
DImage.c418 …ap (ImageContext->ImageAddress, (UINTN)(ImageContext->ImageSize + ImageContext->SectionAlignment)); in GetPeCoffImageFixLoadingAssignedAddress()
518 if (Image->ImageContext.SectionAlignment > EFI_PAGE_SIZE) { in CoreLoadPeImage()
519 Size = (UINTN)Image->ImageContext.ImageSize + Image->ImageContext.SectionAlignment; in CoreLoadPeImage()
592 …EFI_SIZE_TO_PAGES ((UINTN)Image->ImageContext.ImageSize + Image->ImageContext.SectionAlignment))) { in CoreLoadPeImage()
593 … = EFI_SIZE_TO_PAGES ((UINTN)Image->ImageContext.ImageSize + Image->ImageContext.SectionAlignment); in CoreLoadPeImage()
597 … = EFI_SIZE_TO_PAGES ((UINTN)Image->ImageContext.ImageSize + Image->ImageContext.SectionAlignment); in CoreLoadPeImage()
604 (Image->ImageContext.ImageAddress + Image->ImageContext.SectionAlignment - 1) & in CoreLoadPeImage()
605 ~((UINTN)Image->ImageContext.SectionAlignment - 1); in CoreLoadPeImage()
/device/linaro/bootloader/edk2/MdePkg/Include/Library/
DPeCoffLib.h122 UINT32 SectionAlignment; member
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/
DPeCoffLoader.c234 ImageContext->SectionAlignment = 4096; in PeCoffLoaderGetPeHeader()
264 ImageContext->SectionAlignment = Hdr.Pe32->OptionalHeader.SectionAlignment; in PeCoffLoaderGetPeHeader()
474 ImageContext->SectionAlignment = Hdr.Pe32->OptionalHeader.SectionAlignment; in PeCoffLoaderGetImageInfo()
572 ImageContext->SectionAlignment = 4096; in PeCoffLoaderGetImageInfo()
1087 if ((ImageContext->ImageAddress & (CheckContext.SectionAlignment - 1)) != 0) { in PeCoffLoaderLoadImage()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Compatibility/BootScriptSaveOnS3SaveStateThunk/
DScriptSave.c902 if (ImageContext.SectionAlignment > EFI_PAGE_SIZE) { in InitializeScriptSaveOnS3SaveState()
903 … PageNumber = EFI_SIZE_TO_PAGES ((UINTN) (ImageContext.ImageSize + ImageContext.SectionAlignment)); in InitializeScriptSaveOnS3SaveState()
918 ImageContext.ImageAddress += ImageContext.SectionAlignment - 1; in InitializeScriptSaveOnS3SaveState()
919 ImageContext.ImageAddress &= ~(ImageContext.SectionAlignment - 1); in InitializeScriptSaveOnS3SaveState()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/
DEdkIIGluePeCoffLib.h78 UINT32 SectionAlignment; member
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Efi/Include/
DEfiImage.h183 UINT32 SectionAlignment; member
229 UINT32 SectionAlignment; member
/device/linaro/bootloader/edk2/Nt32Pkg/Sec/
DSecMain.c805 …irtualAlloc (NULL, (SIZE_T) (ImageContext.ImageSize + (ImageContext.SectionAlignment * 2)), MEM_CO… in SecWinNtPeiLoadFile()
812 ImageContext.ImageAddress += ImageContext.SectionAlignment - 1; in SecWinNtPeiLoadFile()
813 ImageContext.ImageAddress &= ~((EFI_PHYSICAL_ADDRESS)ImageContext.SectionAlignment - 1); in SecWinNtPeiLoadFile()
/device/linaro/bootloader/edk2/MdePkg/Include/IndustryStandard/
DPeImage.h163 UINT32 SectionAlignment; member
213 UINT32 SectionAlignment; member

12