summaryrefslogtreecommitdiff
path: root/OvmfPkg/PlatformPei/Platform.c
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2014-01-29 21:44:09 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2014-01-29 21:44:09 +0000
commitf76e9eba9deded0a2a25987256ccd5ca7b828927 (patch)
tree0556bdb28c7e811f389d2e4b303b357fd193208e /OvmfPkg/PlatformPei/Platform.c
parentc2fcbc853f92c5a52d868be3eb3b33161c127eab (diff)
downloadedk2-platforms-f76e9eba9deded0a2a25987256ccd5ca7b828927.tar.xz
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
Diffstat (limited to 'OvmfPkg/PlatformPei/Platform.c')
-rw-r--r--OvmfPkg/PlatformPei/Platform.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/OvmfPkg/PlatformPei/Platform.c b/OvmfPkg/PlatformPei/Platform.c
index 7363702bee..10ae623ddd 100644
--- a/OvmfPkg/PlatformPei/Platform.c
+++ b/OvmfPkg/PlatformPei/Platform.c
@@ -420,8 +420,9 @@ InitializePlatform (
XenLeaf = XenDetect ();
+ PublishPeiMemory ();
+
if (XenLeaf != 0) {
- PublishPeiMemory ();
PcdSetBool (PcdPciDisableBusEnumeration, TRUE);
} else {
TopOfMemory = MemDetect ();