This area is overwritten after resume / reboot. Make sure the OS steers clear of it so that we don't destroy OS data after resume.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <ler...@redhat.com> --- OvmfPkg/PlatformPei/Fv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OvmfPkg/PlatformPei/Fv.c b/OvmfPkg/PlatformPei/Fv.c index f389e27..4f1ad16 100644 --- a/OvmfPkg/PlatformPei/Fv.c +++ b/OvmfPkg/PlatformPei/Fv.c @@ -45,12 +45,13 @@ PeiFvInitialization ( BuildFvHob (PcdGet32 (PcdOvmfMemFvBase), PcdGet32 (PcdOvmfMemFvSize)); // - // Create a memory allocation HOB. + // Cover the decompressed main firmware with a memory allocation that + // prevents the OS from using it. At S3 resume we overwrite this area. // BuildMemoryAllocationHob ( PcdGet32 (PcdOvmfMemFvBase), PcdGet32 (PcdOvmfMemFvSize), - EfiBootServicesData + 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