mirror of https://github.com/acidanthera/audk.git
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:
parent
c2fcbc853f
commit
f76e9eba9d
|
@ -142,8 +142,6 @@ MemDetect (
|
|||
LowerMemorySize = GetSystemMemorySizeBelow4gb ();
|
||||
UpperMemorySize = GetSystemMemorySizeAbove4gb ();
|
||||
|
||||
PublishPeiMemory ();
|
||||
|
||||
//
|
||||
// Create memory HOBs
|
||||
//
|
||||
|
|
|
@ -420,8 +420,9 @@ InitializePlatform (
|
|||
|
||||
XenLeaf = XenDetect ();
|
||||
|
||||
PublishPeiMemory ();
|
||||
|
||||
if (XenLeaf != 0) {
|
||||
PublishPeiMemory ();
|
||||
PcdSetBool (PcdPciDisableBusEnumeration, TRUE);
|
||||
} else {
|
||||
TopOfMemory = MemDetect ();
|
||||
|
|
Loading…
Reference in New Issue