Changeset 85718 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/PlatformPei/AmdSev.c
- Timestamp:
- Aug 12, 2020 4:09:12 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 139865
- 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-133213 /vendor/edk2/current 103735-103757,103769-103776,129194-139864
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/PlatformPei/AmdSev.c
r80721 r85718 10 10 // The package level header files this module uses 11 11 // 12 #include <IndustryStandard/Q35MchIch9.h> 12 13 #include <Library/DebugLib.h> 13 14 #include <Library/HobLib.h> … … 17 18 #include <Register/Amd/Cpuid.h> 18 19 #include <Register/Cpuid.h> 20 #include <Register/Intel/SmramSaveStateMap.h> 19 21 20 22 #include "Platform.h" … … 84 86 ASSERT_RETURN_ERROR (LocateMapStatus); 85 87 86 BuildMemoryAllocationHob ( 87 MapPagesBase, // BaseAddress 88 EFI_PAGES_TO_SIZE (MapPagesCount), // Length 89 EfiBootServicesData // MemoryType 90 ); 88 if (mQ35SmramAtDefaultSmbase) { 89 // 90 // The initial SMRAM Save State Map has been covered as part of a larger 91 // reserved memory allocation in InitializeRamRegions(). 92 // 93 ASSERT (SMM_DEFAULT_SMBASE <= MapPagesBase); 94 ASSERT ( 95 (MapPagesBase + EFI_PAGES_TO_SIZE (MapPagesCount) <= 96 SMM_DEFAULT_SMBASE + MCH_DEFAULT_SMBASE_SIZE) 97 ); 98 } else { 99 BuildMemoryAllocationHob ( 100 MapPagesBase, // BaseAddress 101 EFI_PAGES_TO_SIZE (MapPagesCount), // Length 102 EfiBootServicesData // MemoryType 103 ); 104 } 91 105 } 92 106 }
Note:
See TracChangeset
for help on using the changeset viewer.