From c756b2ab80c2ec25462a3389e2e7a3b037a1add7 Mon Sep 17 00:00:00 2001 From: jljusten Date: Thu, 13 Jan 2011 05:46:24 +0000 Subject: OvmfPkg/PlatformPei: Set PM base address OVMF git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11250 6f19259b-4bc3-4df7-8a09-765794883524 --- OvmfPkg/PlatformPei/Platform.c | 5 +++++ OvmfPkg/PlatformPei/PlatformPei.inf | 1 + 2 files changed, 6 insertions(+) (limited to 'OvmfPkg/PlatformPei') diff --git a/OvmfPkg/PlatformPei/Platform.c b/OvmfPkg/PlatformPei/Platform.c index c379f88b4d..833f62adff 100644 --- a/OvmfPkg/PlatformPei/Platform.c +++ b/OvmfPkg/PlatformPei/Platform.c @@ -166,6 +166,11 @@ MiscInitialization ( // Build the CPU hob with 36-bit addressing and 16-bits of IO space. // BuildCpuHob (36, 16); + + // + // Set the PM I/O base address to 0x400 + // + PciAndThenOr32 (PCI_LIB_ADDRESS (0, 1, 3, 0x40), (UINT32) ~0xfc0, 0x400); } diff --git a/OvmfPkg/PlatformPei/PlatformPei.inf b/OvmfPkg/PlatformPei/PlatformPei.inf index d9f905242f..3f0a19439e 100644 --- a/OvmfPkg/PlatformPei/PlatformPei.inf +++ b/OvmfPkg/PlatformPei/PlatformPei.inf @@ -46,6 +46,7 @@ DebugLib HobLib IoLib + PciLib PeiResourcePublicationLib PeiServicesTablePointerLib PeimEntryPoint -- cgit v1.2.3