OvmfPkg/PlatformPei: Call PublishPeiMemory in one place

The Xen and QEMU/KVM paths were calling this at nearly
the same time in the boot flow anyhow, so just make
the call in one spot.

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@15195 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Jordan Justen 2014-01-29 21:44:09 +00:00 committed by jljusten
parent c2fcbc853f
commit f76e9eba9d
2 changed files with 2 additions and 3 deletions

View File

@ -142,8 +142,6 @@ MemDetect (
LowerMemorySize = GetSystemMemorySizeBelow4gb ();
UpperMemorySize = GetSystemMemorySizeAbove4gb ();
PublishPeiMemory ();
//
// Create memory HOBs
//

View File

@ -420,8 +420,9 @@ InitializePlatform (
XenLeaf = XenDetect ();
PublishPeiMemory ();
if (XenLeaf != 0) {
PublishPeiMemory ();
PcdSetBool (PcdPciDisableBusEnumeration, TRUE);
} else {
TopOfMemory = MemDetect ();