mirror of https://github.com/acidanthera/audk.git
OvmfPkg: PlatformPei: reserve SEC/PEI temp RAM for S3 resume
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> [jordan.l.justen@intel.com: move to MemDetect.c; use PCDs] Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15297 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
a781f7099b
commit
e249f906f1
|
@ -192,5 +192,16 @@ InitializeRamRegions (
|
|||
(UINT64)(UINTN) PcdGet32 (PcdS3AcpiReservedMemorySize),
|
||||
EfiACPIMemoryNVS
|
||||
);
|
||||
|
||||
//
|
||||
// Cover the initial RAM area used as stack and temporary PEI heap.
|
||||
//
|
||||
// This is reserved as ACPI NVS so it can be used on S3 resume.
|
||||
//
|
||||
BuildMemoryAllocationHob (
|
||||
PcdGet32 (PcdOvmfSecPeiTempRamBase),
|
||||
PcdGet32 (PcdOvmfSecPeiTempRamSize),
|
||||
EfiACPIMemoryNVS
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -66,6 +66,8 @@
|
|||
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDxeMemFvSize
|
||||
gUefiOvmfPkgTokenSpaceGuid.PcdAcpiPmBaseAddress
|
||||
gUefiOvmfPkgTokenSpaceGuid.PcdS3AcpiReservedMemoryBase
|
||||
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamBase
|
||||
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamSize
|
||||
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdS3AcpiReservedMemorySize
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize
|
||||
|
|
Loading…
Reference in New Issue