Changeset 108794 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Universal/SmmCommunicationBufferDxe/SmmCommunicationBufferDxe.c
- Timestamp:
- Mar 31, 2025 11:31:09 AM (2 weeks ago)
- svn:sync-xref-src-repo-rev:
- 168237
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew
-
Property svn:mergeinfo
changed from (toggle deleted branches)
to (toggle deleted branches)/vendor/edk2/current 103735-103757,103769-103776,129194-164365 /vendor/edk2/current 103735-103757,103769-103776,129194-168232
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Universal/SmmCommunicationBufferDxe/SmmCommunicationBufferDxe.c
r99404 r108794 20 20 #include <Library/MemoryAllocationLib.h> 21 21 #include <Library/DebugLib.h> 22 #include <Library/HobLib.h> 22 23 #include <Library/UefiLib.h> 24 #include <Guid/MmCommBuffer.h> 23 25 #include <Guid/PiSmmCommunicationRegionTable.h> 24 26 … … 45 47 EDKII_PI_SMM_COMMUNICATION_REGION_TABLE *PiSmmCommunicationRegionTable; 46 48 EFI_MEMORY_DESCRIPTOR *Entry; 49 EFI_HOB_GUID_TYPE *GuidHob; 50 MM_COMM_BUFFER *MmCommBuffer; 47 51 48 52 DescriptorSize = sizeof (EFI_MEMORY_DESCRIPTOR); 53 49 54 // 50 55 // Make sure Size != sizeof(EFI_MEMORY_DESCRIPTOR). This will … … 66 71 Entry = (EFI_MEMORY_DESCRIPTOR *)(PiSmmCommunicationRegionTable + 1); 67 72 Entry->Type = EfiConventionalMemory; 68 Entry->PhysicalStart = (EFI_PHYSICAL_ADDRESS)(UINTN)AllocateReservedPages (DEFAULT_COMMON_PI_SMM_COMMUNIATION_REGION_PAGES); 73 74 GuidHob = GetFirstGuidHob (&gMmCommBufferHobGuid); 75 76 if (GuidHob == NULL) { 77 Entry->PhysicalStart = (EFI_PHYSICAL_ADDRESS)(UINTN)AllocateReservedPages (DEFAULT_COMMON_PI_SMM_COMMUNIATION_REGION_PAGES); 78 Entry->NumberOfPages = DEFAULT_COMMON_PI_SMM_COMMUNIATION_REGION_PAGES; 79 } else { 80 MmCommBuffer = GET_GUID_HOB_DATA (GuidHob); 81 Entry->PhysicalStart = MmCommBuffer->PhysicalStart; 82 Entry->NumberOfPages = MmCommBuffer->NumberOfPages; 83 } 84 69 85 ASSERT (Entry->PhysicalStart != 0); 70 Entry->VirtualStart = 0; 71 Entry->NumberOfPages = DEFAULT_COMMON_PI_SMM_COMMUNIATION_REGION_PAGES; 72 Entry->Attribute = 0; 86 Entry->VirtualStart = 0; 87 Entry->Attribute = 0; 73 88 74 89 DEBUG ((DEBUG_INFO, "PiSmmCommunicationRegionTable:(0x%x)\n", PiSmmCommunicationRegionTable));
Note:
See TracChangeset
for help on using the changeset viewer.