Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <[email protected]>
---
OvmfPkg/PlatformPei/Fv.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/OvmfPkg/PlatformPei/Fv.c b/OvmfPkg/PlatformPei/Fv.c
index a119172..e309ddf 100644
--- a/OvmfPkg/PlatformPei/Fv.c
+++ b/OvmfPkg/PlatformPei/Fv.c
@@ -46,6 +46,17 @@ PeiFvInitialization (
BuildFvHob (PcdGet32 (PcdOvmfMemFvBase), PcdGet32 (PcdOvmfMemFvSize));
//
+ // Cover the initial RAM area used as stack and temporary PEI heap. The base
+ // constant comes from OvmfPkg/Sec/{Ia32,X64}/SecEntry.{asm,S}, the size
+ // originates from SecCoreStartupWithStack() [OvmfPkg/Sec/SecMain.c].
+ //
+ BuildMemoryAllocationHob (
+ BASE_512KB - SIZE_64KB,
+ SIZE_64KB,
+ EfiACPIMemoryNVS
+ );
+
+ //
// Cover the decompressed main firmware with a memory allocation that
// prevents the OS from using it. At S3 resume we overwrite this area.
//
--
1.8.3.1
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel