diff options
author | jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-01-13 05:46:24 +0000 |
---|---|---|
committer | jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-01-13 05:46:24 +0000 |
commit | c756b2ab80c2ec25462a3389e2e7a3b037a1add7 (patch) | |
tree | 836a76897fc322e7436d3cfa4caf6c89a368bf6b /OvmfPkg | |
parent | 0462965227b6704b14f05812edbbc96c4d044c1f (diff) | |
download | edk2-c756b2ab80c2ec25462a3389e2e7a3b037a1add7.zip edk2-c756b2ab80c2ec25462a3389e2e7a3b037a1add7.tar.gz edk2-c756b2ab80c2ec25462a3389e2e7a3b037a1add7.tar.bz2 |
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
Diffstat (limited to 'OvmfPkg')
-rw-r--r-- | OvmfPkg/PlatformPei/Platform.c | 5 | ||||
-rw-r--r-- | OvmfPkg/PlatformPei/PlatformPei.inf | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/OvmfPkg/PlatformPei/Platform.c b/OvmfPkg/PlatformPei/Platform.c index c379f88..833f62a 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 d9f9052..3f0a194 100644 --- a/OvmfPkg/PlatformPei/PlatformPei.inf +++ b/OvmfPkg/PlatformPei/PlatformPei.inf @@ -46,6 +46,7 @@ DebugLib
HobLib
IoLib
+ PciLib
PeiResourcePublicationLib
PeiServicesTablePointerLib
PeimEntryPoint
|