!else\r
DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
!endif\r
- PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
+ PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf\r
\r
[LibraryClasses.common.DXE_DRIVER]\r
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0\r
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0\r
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0\r
+ gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|FALSE\r
\r
\r
################################################################################\r
MdeModulePkg/Core/Pei/PeiMain.inf\r
MdeModulePkg/Universal/PCD/Pei/Pcd.inf {\r
<LibraryClasses>\r
- PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
+ PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf\r
}\r
IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf\r
MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf\r
!else\r
DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
!endif\r
- PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
+ PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf\r
\r
[LibraryClasses.common.DXE_DRIVER]\r
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0\r
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0\r
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0\r
+ gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|FALSE\r
\r
\r
################################################################################\r
MdeModulePkg/Core/Pei/PeiMain.inf\r
MdeModulePkg/Universal/PCD/Pei/Pcd.inf {\r
<LibraryClasses>\r
- PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
+ PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf\r
}\r
IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf\r
MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf\r
!else\r
DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
!endif\r
- PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
+ PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf\r
\r
[LibraryClasses.common.DXE_DRIVER]\r
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0\r
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0\r
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0\r
+ gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|FALSE\r
\r
\r
################################################################################\r
MdeModulePkg/Core/Pei/PeiMain.inf\r
MdeModulePkg/Universal/PCD/Pei/Pcd.inf {\r
<LibraryClasses>\r
- PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
+ PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf\r
}\r
IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf\r
MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf\r
\r
XenLeaf = XenDetect ();\r
\r
- TopOfMemory = MemDetect ();\r
+ if (XenLeaf != 0) {\r
+ PublishPeiMemory ();\r
+ PcdSetBool (PcdPciDisableBusEnumeration, TRUE);\r
+ } else\r
+ TopOfMemory = MemDetect ();\r
\r
if (XenLeaf != 0) {\r
DEBUG ((EFI_D_INFO, "Xen was detected\n"));\r
\r
PeiFvInitialization ();\r
\r
- MemMapInitialization (TopOfMemory);\r
+ if (XenLeaf != 0)\r
+ XenMemMapInitialization ();\r
+ else\r
+ MemMapInitialization (TopOfMemory);\r
\r
MiscInitialization ();\r
\r
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize\r
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize\r
gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved\r
+ gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration\r
gUefiCpuPkgTokenSpaceGuid.PcdCpuLocalApicBaseAddress\r
\r
[Ppis]\r