Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <ler...@redhat.com>
---
 OvmfPkg/PlatformPei/Fv.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/OvmfPkg/PlatformPei/Fv.c b/OvmfPkg/PlatformPei/Fv.c
index 4a31cc3..ab736f7 100644
--- a/OvmfPkg/PlatformPei/Fv.c
+++ b/OvmfPkg/PlatformPei/Fv.c
@@ -66,6 +66,16 @@ PeiFvInitialization (
     EfiACPIMemoryNVS
     );
 
+  //
+  // 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
+    );
   return EFI_SUCCESS;
 }
 
-- 
1.8.3.1



------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to