summaryrefslogtreecommitdiff
path: root/OvmfPkg/PlatformPei
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2014-02-01 21:22:36 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2014-02-01 21:22:36 +0000
commitc191a58fac8901952b44c31856c9f25e390b09b5 (patch)
tree9669da28a226a6f279d9d6f11c071633090002f6 /OvmfPkg/PlatformPei
parent18f31ada8d5f02a42408dfe4092a8bcc71fc4ed9 (diff)
downloadedk2-platforms-c191a58fac8901952b44c31856c9f25e390b09b5.tar.xz
OvmfPkg/PlatformPei: Set PcdPciDisableBusEnumeration in InitializeXen
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Wei Liu <wei.liu2@citrix.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15204 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg/PlatformPei')
-rw-r--r--OvmfPkg/PlatformPei/Platform.c4
-rw-r--r--OvmfPkg/PlatformPei/Xen.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/OvmfPkg/PlatformPei/Platform.c b/OvmfPkg/PlatformPei/Platform.c
index 743044d29e..d4df0c60e7 100644
--- a/OvmfPkg/PlatformPei/Platform.c
+++ b/OvmfPkg/PlatformPei/Platform.c
@@ -384,9 +384,7 @@ InitializePlatform (
PublishPeiMemory ();
- if (mXen) {
- PcdSetBool (PcdPciDisableBusEnumeration, TRUE);
- } else {
+ if (!mXen) {
TopOfMemory = MemDetect ();
}
diff --git a/OvmfPkg/PlatformPei/Xen.c b/OvmfPkg/PlatformPei/Xen.c
index 3a2e358661..1886326f20 100644
--- a/OvmfPkg/PlatformPei/Xen.c
+++ b/OvmfPkg/PlatformPei/Xen.c
@@ -225,5 +225,7 @@ InitializeXen (
//
AddReservedMemoryBaseSizeHob (0xFC000000, 0x1000000);
+ PcdSetBool (PcdPciDisableBusEnumeration, TRUE);
+
return EFI_SUCCESS;
}