Home
last modified time | relevance | path

Searched refs:SIZE_2MB (Results 1 – 13 of 13) sorted by relevance

/device/linaro/bootloader/edk2/UefiCpuPkg/PiSmmCpuDxeSmm/
DSmmProfile.c410 …if (((ProtectBaseAddress & (SIZE_2MB - 1)) != 0) || ((ProtectEndAddress & (SIZE_2MB - 1)) != 0)) { in InitProtectedMemRange()
415 Top2MBAlignedAddress = ProtectEndAddress & ~(SIZE_2MB - 1); in InitProtectedMemRange()
416 Base2MBAlignedAddress = (ProtectBaseAddress + SIZE_2MB - 1) & ~(SIZE_2MB - 1); in InitProtectedMemRange()
418 ((Top2MBAlignedAddress - Base2MBAlignedAddress) >= SIZE_2MB)) { in InitProtectedMemRange()
422 …High4KBPageSize = ((ProtectEndAddress + SIZE_2MB - 1) & ~(SIZE_2MB - 1)) - (ProtectEndAddress & ~( in InitProtectedMemRange()
423 …Low4KBPageSize = ((ProtectBaseAddress + SIZE_2MB - 1) & ~(SIZE_2MB - 1)) - (ProtectBaseAddress & … in InitProtectedMemRange()
428 mSplitMemRange[NumberOfSpliteRange].Base = ProtectEndAddress & ~(SIZE_2MB - 1); in InitProtectedMemRange()
429 … mSplitMemRange[NumberOfSpliteRange].Top = (ProtectEndAddress + SIZE_2MB - 1) & ~(SIZE_2MB - 1); in InitProtectedMemRange()
436 mSplitMemRange[NumberOfSpliteRange].Base = ProtectBaseAddress & ~(SIZE_2MB - 1); in InitProtectedMemRange()
437 … mSplitMemRange[NumberOfSpliteRange].Top = (ProtectBaseAddress + SIZE_2MB - 1) & ~(SIZE_2MB - 1); in InitProtectedMemRange()
[all …]
DMpService.c758 Low2MBoundary = (mSmmStackArrayBase + EFI_PAGE_SIZE) & ~(SIZE_2MB-1); in Gen4GPageTable()
763 High2MBoundary = (mSmmStackArrayEnd - mSmmStackSize + EFI_PAGE_SIZE * 2) & ~(SIZE_2MB-1); in Gen4GPageTable()
764 PagesNeeded = ((High2MBoundary - Low2MBoundary) / SIZE_2MB) + 1; in Gen4GPageTable()
799 for (PageIndex = Low2MBoundary; PageIndex <= High2MBoundary; PageIndex += SIZE_2MB) { in Gen4GPageTable()
DSmmCpuMemoryManagement.c28 {Page2M, SIZE_2MB, PAGING_2M_ADDRESS_MASK_64},
263 if (((BaseAddress & PAGING_2M_MASK) != 0) || (Length < SIZE_2MB)) { in NeedSplitPage()
328 …NewPageEntry[Index] = BaseAddress + SIZE_2MB * Index + IA32_PG_PS + ((*PageEntry) & PAGE_PROGATE_B… in SplitPage()
/device/linaro/bootloader/edk2/MdeModulePkg/Core/DxeIplPeim/X64/
DVirtualMemory.c122 …ntries < 512; IndexOfPageDirectoryEntries++, PageDirectoryEntry++, PhysicalAddress2M += SIZE_2MB) { in Split1GPageTo2M()
123 … if ((PhysicalAddress2M < StackBase + StackSize) && ((PhysicalAddress2M + SIZE_2MB) > StackBase)) { in Split1GPageTo2M()
287 …ctoryEntries < 512; IndexOfPageDirectoryEntries++, PageDirectoryEntry++, PageAddress += SIZE_2MB) { in CreateIdentityMappingPageTables()
288 …etNxForStack) && (PageAddress < StackBase + StackSize) && ((PageAddress + SIZE_2MB) > StackBase)) { in CreateIdentityMappingPageTables()
/device/linaro/bootloader/edk2/OvmfPkg/PciHotPlugInitDxe/
DPciHotPlugInit.c75 SIZE_2MB - 1, // AddrRangeMax:
79 SIZE_2MB // AddrLen:
/device/linaro/bootloader/edk2/ArmPlatformPkg/ArmJunoPkg/Include/
DArmPlatform.h38 #define ARM_VE_SMB_PERIPH_SZ (SIZE_64MB + SIZE_2MB)
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Compatibility/SmmBaseHelper/
DSmmBaseHelper.c356 if (((UINTN)mFrameworkSmst->CpuSaveState & ~(SIZE_2MB-1)) == (PFAddress & ~(SIZE_2MB-1))) { in PageFaultHandler()
471 ASSERT ((Pde & mPhyMask) == (HookAddress & ~(SIZE_2MB-1))); // 2MB Page Point to HookAddress in InitCpuStatePageTable()
474 Address = HookAddress & ~(SIZE_2MB-1); in InitCpuStatePageTable()
568 …ACHINE_TYPE_SUPPORTED(EFI_IMAGE_MACHINE_X64) && NumCpuStatePages <= EFI_SIZE_TO_PAGES (SIZE_2MB)) { in InitHook()
574 Bottom2MPage = CpuStatePage & ~(SIZE_2MB-1); in InitHook()
575 Top2MPage = (CpuStatePage + EFI_PAGES_TO_SIZE (NumCpuStatePages * 2) - 1) & ~(SIZE_2MB-1); in InitHook()
/device/linaro/bootloader/edk2/MdeModulePkg/Core/DxeIplPeim/Ia32/
DDxeLoadFunc.c117 …yEntries < 512; IndexOfPageDirectoryEntries++, PageDirectoryEntry++, PhysicalAddress += SIZE_2MB) { in Create4GPageTablesIa32Pae()
118 if ((PhysicalAddress < StackBase + StackSize) && ((PhysicalAddress + SIZE_2MB) > StackBase)) { in Create4GPageTablesIa32Pae()
/device/linaro/bootloader/edk2/OvmfPkg/SmmAccess/
DSmramInternal.c183 TsegSizeBits == MCH_ESMRAMC_TSEG_2MB ? SIZE_2MB : in SmramAccessGetCapabilities()
/device/linaro/bootloader/edk2/MdePkg/Include/
DBase.h441 #define SIZE_2MB 0x00200000 macro
/device/linaro/bootloader/edk2/UefiCpuPkg/PiSmmCpuDxeSmm/X64/
DPageTbl.c219 …ctoryEntries < 512; IndexOfPageDirectoryEntries++, PageDirectoryEntry++, PageAddress += SIZE_2MB) { in SetStaticPageTable()
/device/linaro/bootloader/edk2/UefiCpuPkg/Universal/Acpi/S3Resume2Pei/
DS3Resume.c731 …ctoryEntries < 512; IndexOfPageDirectoryEntries++, PageDirectoryEntry++, PageAddress += SIZE_2MB) { in RestoreS3PageTables()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/CapsulePei/
DUefiCapsule.c222 …ctoryEntries < 512; IndexOfPageDirectoryEntries++, PageDirectoryEntry++, PageAddress += SIZE_2MB) { in Create4GPageTables()