Home | History | Annotate | Download | only in PiSmmCpuDxeSmm

Lines Matching full:memorymap

767   EFI_MEMORY_DESCRIPTOR                     *MemoryMap;

788 MemoryMap = MemoryMapStart;
790 DEBUG ((DEBUG_INFO, "Entry (0x%x)\n", MemoryMap));
791 DEBUG ((DEBUG_INFO, " Type - 0x%x\n", MemoryMap->Type));
792 DEBUG ((DEBUG_INFO, " PhysicalStart - 0x%016lx\n", MemoryMap->PhysicalStart));
793 DEBUG ((DEBUG_INFO, " VirtualStart - 0x%016lx\n", MemoryMap->VirtualStart));
794 DEBUG ((DEBUG_INFO, " NumberOfPages - 0x%016lx\n", MemoryMap->NumberOfPages));
795 DEBUG ((DEBUG_INFO, " Attribute - 0x%016lx\n", MemoryMap->Attribute));
796 MemoryMap = NEXT_MEMORY_DESCRIPTOR(MemoryMap, DescriptorSize);
799 MemoryMap = MemoryMapStart;
801 DEBUG ((DEBUG_VERBOSE, "SetAttribute: Memory Entry - 0x%lx, 0x%x\n", MemoryMap->PhysicalStart, MemoryMap->NumberOfPages));
802 switch (MemoryMap->Type) {
805 MemoryMap->PhysicalStart,
806 EFI_PAGES_TO_SIZE((UINTN)MemoryMap->NumberOfPages),
812 MemoryMap->PhysicalStart,
813 EFI_PAGES_TO_SIZE((UINTN)MemoryMap->NumberOfPages),
819 MemoryMap->PhysicalStart,
820 EFI_PAGES_TO_SIZE((UINTN)MemoryMap->NumberOfPages),
825 MemoryMap = NEXT_MEMORY_DESCRIPTOR(MemoryMap, DescriptorSize);
837 @param MemoryMap A pointer to the buffer in which firmware places
839 @param MemoryMapSize Size, in bytes, of the MemoryMap buffer.
845 IN OUT EFI_MEMORY_DESCRIPTOR *MemoryMap,
855 MemoryMapEntry = MemoryMap;
857 MemoryMapEnd = (EFI_MEMORY_DESCRIPTOR *) ((UINT8 *) MemoryMap + MemoryMapSize);
881 @param[in] MemoryMap A pointer to the memory descriptor.
888 IN EFI_MEMORY_DESCRIPTOR *MemoryMap
891 switch (MemoryMap->Type) {
911 @param[in, out] MemoryMap A pointer to the buffer in which firmware places
914 MemoryMap buffer. On input, this is the size of
922 IN OUT EFI_MEMORY_DESCRIPTOR *MemoryMap,
933 MemoryMapEntry = MemoryMap;
934 MemoryMap;
935 MemoryMapEnd = (EFI_MEMORY_DESCRIPTOR *) ((UINT8 *) MemoryMap + *MemoryMapSize);
962 *MemoryMapSize = (UINTN)NewMemoryMapEntry - (UINTN)MemoryMap;
978 EFI_MEMORY_DESCRIPTOR *MemoryMap;
984 MemoryMap = NULL;
987 MemoryMap,
995 Status = gBS->AllocatePool (EfiBootServicesData, UefiMemoryMapSize, (VOID **)&MemoryMap);
996 ASSERT (MemoryMap != NULL);
997 if (MemoryMap == NULL) {
1003 MemoryMap,
1009 gBS->FreePool (MemoryMap);
1010 MemoryMap = NULL;
1014 if (MemoryMap == NULL) {
1018 SortMemoryMap (MemoryMap, UefiMemoryMapSize, mUefiDescriptorSize);
1019 MergeMemoryMapForNotPresentEntry (MemoryMap, &UefiMemoryMapSize, mUefiDescriptorSize);
1022 mUefiMemoryMap = AllocateCopyPool (UefiMemoryMapSize, MemoryMap);
1025 gBS->FreePool (MemoryMap);
1040 EFI_MEMORY_DESCRIPTOR *MemoryMap;
1052 MemoryMap = mUefiMemoryMap;
1054 if (IsUefiPageNotPresent(MemoryMap)) {
1055 DEBUG ((DEBUG_INFO, "UefiMemory protection: 0x%lx - 0x%lx\n", MemoryMap->PhysicalStart, MemoryMap->PhysicalStart + (UINT64)EFI_PAGES_TO_SIZE((UINTN)MemoryMap->NumberOfPages)));
1057 MemoryMap->PhysicalStart,
1058 EFI_PAGES_TO_SIZE((UINTN)MemoryMap->NumberOfPages),
1062 MemoryMap = NEXT_MEMORY_DESCRIPTOR(MemoryMap, mUefiDescriptorSize);
1083 EFI_MEMORY_DESCRIPTOR *MemoryMap;
1091 MemoryMap = mUefiMemoryMap;
1094 if (IsUefiPageNotPresent (MemoryMap)) {
1095 if ((Address >= MemoryMap->PhysicalStart) &&
1096 (Address < MemoryMap->PhysicalStart + EFI_PAGES_TO_SIZE((UINTN)MemoryMap->NumberOfPages)) ) {
1100 MemoryMap = NEXT_MEMORY_DESCRIPTOR(MemoryMap, mUefiDescriptorSize);