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:
@@ -142,8 +142,6 @@ MemDetect (
|
|||||||
LowerMemorySize = GetSystemMemorySizeBelow4gb ();
|
LowerMemorySize = GetSystemMemorySizeBelow4gb ();
|
||||||
UpperMemorySize = GetSystemMemorySizeAbove4gb ();
|
UpperMemorySize = GetSystemMemorySizeAbove4gb ();
|
||||||
|
|
||||||
PublishPeiMemory ();
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Create memory HOBs
|
// Create memory HOBs
|
||||||
//
|
//
|
||||||
|
@@ -420,8 +420,9 @@ InitializePlatform (
|
|||||||
|
|
||||||
XenLeaf = XenDetect ();
|
XenLeaf = XenDetect ();
|
||||||
|
|
||||||
if (XenLeaf != 0) {
|
|
||||||
PublishPeiMemory ();
|
PublishPeiMemory ();
|
||||||
|
|
||||||
|
if (XenLeaf != 0) {
|
||||||
PcdSetBool (PcdPciDisableBusEnumeration, TRUE);
|
PcdSetBool (PcdPciDisableBusEnumeration, TRUE);
|
||||||
} else {
|
} else {
|
||||||
TopOfMemory = MemDetect ();
|
TopOfMemory = MemDetect ();
|
||||||
|
Reference in New Issue
Block a user