On Wed, Aug 15, 2012 at 8:59 AM, Laszlo Ersek <ler...@redhat.com> wrote: > diff --git a/OvmfPkg/PlatformPei/Platform.c b/OvmfPkg/PlatformPei/Platform.c > index ad9f4c6..8f07265 100644 > --- a/OvmfPkg/PlatformPei/Platform.c > +++ b/OvmfPkg/PlatformPei/Platform.c > @@ -227,9 +227,24 @@ MiscInitialization ( > > if (!Xen) { > // > - // Set the PM I/O base address to 0x400 > + // The PEI phase should be exited with fully accessibe PIIX4 IO space: > + // 1. set PMBA > // > - PciAndThenOr32 (PCI_LIB_ADDRESS (0, 1, 3, 0x40), (UINT32) ~0xFFC0, > 0x400); > + PciAndThenOr32 ( > + PCI_LIB_ADDRESS (0, 1, 3, 0x40), > + (UINT32) ~0xFFC0, > + PcdGet16 (PcdPowerManagementBaseAddress) > + ); > + > + // > + // 2. set PCICMD/IOSE > + // > + PciOr8 (PCI_LIB_ADDRESS (0, 1, 3, 0x04), 0x01);
PCI_COMMAND_OFFSET EFI_PCI_COMMAND_IO_SPACE -Jordan ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel