OvmfPkg/PlatformPei: Set PcdPciDisableBusEnumeration in InitializeXen
authorJordan Justen <jordan.l.justen@intel.com>
Sat, 1 Feb 2014 21:22:36 +0000 (21:22 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Sat, 1 Feb 2014 21:22:36 +0000 (21:22 +0000)
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

OvmfPkg/PlatformPei/Platform.c
OvmfPkg/PlatformPei/Xen.c

index 743044d29eb4ca5a260b46c5c34228338b394558..d4df0c60e7895fc92889bdaedc75b88641389d48 100644 (file)
@@ -384,9 +384,7 @@ InitializePlatform (
 \r
   PublishPeiMemory ();\r
 \r
-  if (mXen) {\r
-    PcdSetBool (PcdPciDisableBusEnumeration, TRUE);\r
-  } else {\r
+  if (!mXen) {\r
     TopOfMemory = MemDetect ();\r
   }\r
 \r
index 3a2e358661826094fdbe000eed3bfcc52b67959c..1886326f20c66ed30f5c4263e435b2ce05dea3bd 100644 (file)
@@ -225,5 +225,7 @@ InitializeXen (
   //\r
   AddReservedMemoryBaseSizeHob (0xFC000000, 0x1000000);\r
 \r
+  PcdSetBool (PcdPciDisableBusEnumeration, TRUE);\r
+\r
   return EFI_SUCCESS;\r
 }\r