|
Lines 939-945
InitializeRamRegions (
Link Here
|
| 939 |
} |
939 |
} |
| 940 |
|
940 |
|
| 941 |
#ifdef MDE_CPU_X64 |
941 |
#ifdef MDE_CPU_X64 |
| 942 |
if (MemEncryptSevEsIsEnabled ()) { |
942 |
if (((SEC_SEV_ES_WORK_AREA *) FixedPcdGet32 (PcdSevEsWorkAreaBase)) != NULL) { |
| 943 |
// |
943 |
// |
| 944 |
// If SEV-ES is enabled, reserve the SEV-ES work area. |
944 |
// If SEV-ES is enabled, reserve the SEV-ES work area. |
| 945 |
// |
945 |
// |
|
Lines 953-959
InitializeRamRegions (
Link Here
|
| 953 |
BuildMemoryAllocationHob ( |
953 |
BuildMemoryAllocationHob ( |
| 954 |
(EFI_PHYSICAL_ADDRESS)(UINTN) FixedPcdGet32 (PcdSevEsWorkAreaBase), |
954 |
(EFI_PHYSICAL_ADDRESS)(UINTN) FixedPcdGet32 (PcdSevEsWorkAreaBase), |
| 955 |
(UINT64)(UINTN) FixedPcdGet32 (PcdSevEsWorkAreaSize), |
955 |
(UINT64)(UINTN) FixedPcdGet32 (PcdSevEsWorkAreaSize), |
| 956 |
mS3Supported ? EfiACPIMemoryNVS : EfiBootServicesData |
956 |
EfiACPIMemoryNVS |
| 957 |
); |
957 |
); |
| 958 |
} |
958 |
} |
| 959 |
#endif |
959 |
#endif |
| 960 |
- |
|
|