Revision: 14286
http://edk2.svn.sourceforge.net/edk2/?rev=14286&view=rev
Author: vanjeff
Date: 2013-04-18 05:32:02 +0000 (Thu, 18 Apr 2013)
Log Message:
-----------
Sync patch r14260 from main trunk.
Add OpROM code type check to ensure OpROM is PCAT legacy OpROM when an OpROM is
passed to InstallPciRom.
Revision Links:
--------------
http://edk2.svn.sourceforge.net/edk2/?rev=14260&view=rev
Modified Paths:
--------------
branches/UDK2010.SR1/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyPci.c
Modified:
branches/UDK2010.SR1/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyPci.c
===================================================================
--- branches/UDK2010.SR1/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyPci.c
2013-04-18 05:08:50 UTC (rev 14285)
+++ branches/UDK2010.SR1/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyPci.c
2013-04-18 05:32:02 UTC (rev 14286)
@@ -2942,7 +2942,7 @@
Pcir = (PCI_3_0_DATA_STRUCTURE *)
((UINT8 *) LocalRomImage + ((PCI_EXPANSION_ROM_HEADER *)
LocalRomImage)->PcirOffset);
- if (Pcir->Signature != PCI_DATA_STRUCTURE_SIGNATURE) {
+ if ((Pcir->Signature != PCI_DATA_STRUCTURE_SIGNATURE) || (Pcir->CodeType
!= PCI_CODE_TYPE_PCAT_IMAGE)) {
mVgaInstallationInProgress = FALSE;
return EFI_UNSUPPORTED;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits