From c191a58fac8901952b44c31856c9f25e390b09b5 Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Sat, 1 Feb 2014 21:22:36 +0000 Subject: [PATCH] OvmfPkg/PlatformPei: Set PcdPciDisableBusEnumeration in InitializeXen Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Wei Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15204 6f19259b-4bc3-4df7-8a09-765794883524 --- OvmfPkg/PlatformPei/Platform.c | 4 +--- OvmfPkg/PlatformPei/Xen.c | 2 ++ 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; } -- 2.39.2