Home
last modified time | relevance | path

Searched refs:SmramRanges (Results 1 – 10 of 10) sorted by relevance

/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Compatibility/AcpiVariableHobOnSmramReserveHobThunk/
DAcpiVariableHobOnSmramReserveHobThunk.c71 UINTN SmramRanges; in SplitSmramReserveHob() local
89 SmramRanges = DescriptorBlock->NumberOfSmmReservedRegions; in SplitSmramReserveHob()
90 …BufferSize = sizeof (EFI_SMRAM_HOB_DESCRIPTOR_BLOCK) + (SmramRanges * sizeof (EFI_SMRAM_DESCRIPTOR… in SplitSmramReserveHob()
107 NewDescriptorBlock->NumberOfSmmReservedRegions = (UINT32)(SmramRanges + 1); in SplitSmramReserveHob()
109 ASSERT (SmramRanges >= 1); in SplitSmramReserveHob()
113 …CopyMem (&NewDescriptorBlock->Descriptor[SmramRanges], &NewDescriptorBlock->Descriptor[SmramRanges in SplitSmramReserveHob()
118 NewDescriptorBlock->Descriptor[SmramRanges - 1].PhysicalSize = EFI_PAGE_SIZE; in SplitSmramReserveHob()
119 NewDescriptorBlock->Descriptor[SmramRanges - 1].RegionState |= EFI_ALLOCATED; in SplitSmramReserveHob()
124 NewDescriptorBlock->Descriptor[SmramRanges].PhysicalStart += EFI_PAGE_SIZE; in SplitSmramReserveHob()
125 NewDescriptorBlock->Descriptor[SmramRanges].CpuStart += EFI_PAGE_SIZE; in SplitSmramReserveHob()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Core/PiSmmCore/
DPool.c58 IN EFI_SMRAM_DESCRIPTOR *SmramRanges in SmmInitializeMemoryServices() argument
88 …if ((SmramRanges[Index].RegionState & (EFI_ALLOCATED | EFI_NEEDS_TESTING | EFI_NEEDS_ECC_INITIALIZ… in SmmInitializeMemoryServices()
92 SmramRanges[Index].CpuStart, in SmmInitializeMemoryServices()
93 SmramRanges[Index].PhysicalSize, in SmmInitializeMemoryServices()
95 SmramRanges[Index].RegionState in SmmInitializeMemoryServices()
103 …if ((SmramRanges[Index].RegionState & (EFI_ALLOCATED | EFI_NEEDS_TESTING | EFI_NEEDS_ECC_INITIALIZ… in SmmInitializeMemoryServices()
107 SmramRanges[Index].CpuStart, in SmmInitializeMemoryServices()
108 SmramRanges[Index].PhysicalSize, in SmmInitializeMemoryServices()
110 SmramRanges[Index].RegionState in SmmInitializeMemoryServices()
DPiSmmIpl.c360 RangeCpuStart = gSmmCorePrivate->SmramRanges[Index].CpuStart; in GetSmramCacheRange()
361 RangePhysicalSize = gSmmCorePrivate->SmramRanges[Index].PhysicalSize; in GetSmramCacheRange()
1309 EFI_SMRAM_DESCRIPTOR *SmramRanges; in GetFullSmramRanges() local
1415 SmramRanges = (EFI_SMRAM_DESCRIPTOR *) AllocatePool (Size); in GetFullSmramRanges()
1416 ASSERT (SmramRanges != NULL); in GetFullSmramRanges()
1417 Status = mSmmAccess->GetCapabilities (mSmmAccess, &Size, SmramRanges); in GetFullSmramRanges()
1426 if (SmramRanges[Index].PhysicalSize != 0) { in GetFullSmramRanges()
1433 &SmramRanges[Index], in GetFullSmramRanges()
1440 &SmramRanges[Index], in GetFullSmramRanges()
1442 SmramRanges, in GetFullSmramRanges()
[all …]
DPiSmmCorePrivateData.h70 EFI_SMRAM_DESCRIPTOR *SmramRanges; member
DPiSmmCore.c662 …CopyMem (mFullSmramRanges, gSmmCorePrivate->SmramRanges, mFullSmramRangeCount * sizeof (EFI_SMRAM_… in SmmMain()
DPiSmmCore.h207 IN EFI_SMRAM_DESCRIPTOR *SmramRanges
/device/linaro/bootloader/edk2/UefiCpuPkg/PiSmmCpuDxeSmm/
DPiSmmCpuDxeSmm.c960 EFI_SMRAM_DESCRIPTOR *SmramRanges; in FindSmramInfo() local
979 SmramRanges = (EFI_SMRAM_DESCRIPTOR *)AllocatePool (Size); in FindSmramInfo()
980 ASSERT (SmramRanges != NULL); in FindSmramInfo()
982 Status = SmmAccess->GetCapabilities (SmmAccess, &Size, SmramRanges); in FindSmramInfo()
995 …if ((SmramRanges[Index].RegionState & (EFI_ALLOCATED | EFI_NEEDS_TESTING | EFI_NEEDS_ECC_INITIALIZ… in FindSmramInfo()
999 if (SmramRanges[Index].CpuStart >= BASE_1MB) { in FindSmramInfo()
1000 if ((SmramRanges[Index].CpuStart + SmramRanges[Index].PhysicalSize) <= BASE_4GB) { in FindSmramInfo()
1001 if (SmramRanges[Index].PhysicalSize >= MaxSize) { in FindSmramInfo()
1002 MaxSize = SmramRanges[Index].PhysicalSize; in FindSmramInfo()
1003 CurrentSmramRange = &SmramRanges[Index]; in FindSmramInfo()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/
DPiSmmCoreMemoryAllocationServices.h44 EFI_SMRAM_DESCRIPTOR *SmramRanges; member
109 IN EFI_SMRAM_DESCRIPTOR *SmramRanges
DMemoryAllocationLib.c1078 SmmInitializeMemoryServices (SmmCorePrivate->SmramRangeCount, SmmCorePrivate->SmramRanges); in PiSmmCoreMemoryAllocationLibConstructor()
1084 CopyMem (mSmmCoreMemoryAllocLibSmramRanges, SmmCorePrivate->SmramRanges, Size); in PiSmmCoreMemoryAllocationLibConstructor()
/device/linaro/bootloader/edk2/QuarkPlatformPkg/Platform/Pei/PlatformInit/
DMrcWrapper.c553 UINT8 SmramRanges; in InstallEfiMemory() local
759 SmramRanges = 0; in InstallEfiMemory()
802 SmramRanges++; in InstallEfiMemory()
840 ASSERT (SmramRanges > 0); in InstallEfiMemory()
842 BufferSize += ((SmramRanges - 1) * sizeof (EFI_SMRAM_DESCRIPTOR)); in InstallEfiMemory()
851 SmramHobDescriptorBlock->NumberOfSmmReservedRegions = SmramRanges; in InstallEfiMemory()
877 …CopyMem(&DescriptorAcpiVariable, &SmramHobDescriptorBlock->Descriptor[SmramRanges-1], sizeof(EFI_S… in InstallEfiMemory()
918 UINT8 SmramRanges; in InstallS3Memory() local
947 SmramRanges = 0; in InstallS3Memory()
951 SmramRanges++; in InstallS3Memory()
[all …]