audk/OvmfPkg/PlatformPei
Laszlo Ersek 9edb2933ab OvmfPkg/PlatformPei: emulated NV storage must be EfiRuntimeServicesData
SVN r14770 ("OvmfPkg/PlatformPei: correctly align emulated NV storage")
made sure the emulated NV storage was allocated with correct alignment.

However, the AllocateRuntimePool() -> AllocateAlignedPages() change
flipped the memory type from EfiRuntimeServicesData to
EfiBootServicesData. This causes variable services to access freed storage
at runtime. It crashes Windows 2008 R2 early at boot, for example.

Keep the alignment, but restore the memory type to EfiRuntimeServicesData,
by calling AllocateAlignedRuntimePages().

These helper functions are implemeted and documented in
"MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c".

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14806 6f19259b-4bc3-4df7-8a09-765794883524
2013-10-29 06:02:46 +00:00
..
Cmos.c Update the copyright notice format 2010-04-28 12:43:04 +00:00
Cmos.h Update the copyright notice format 2010-04-28 12:43:04 +00:00
Fv.c OvmfPkg: Remove variables that are set, but not used 2011-10-31 15:57:12 +00:00
MemDetect.c OvmfPkg/PlatformPei: Remove MtrrLib ASSERTs 2011-10-31 15:58:18 +00:00
Platform.c OvmfPkg/PlatformPei: emulated NV storage must be EfiRuntimeServicesData 2013-10-29 06:02:46 +00:00
Platform.h OvmfPkg/PlatformPei: Add Xen support 2011-08-05 15:43:05 +00:00
PlatformPei.inf OvmfPkg: enable PIIX4 IO space in the PEI phase 2012-09-12 07:19:16 +00:00
Xen.c Fix build crash while using MSFT to build OVMF, also fix some build warning report for PCD type issues. 2011-08-25 03:19:57 +00:00