InstallOpROM in CSM driver could be enhanced to start video when RomImage is passed in directly.

Signed-off-by: li-elvin
Reviewed-by: niruiyu


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12521 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
li-elvin 2011-10-10 07:54:47 +00:00
parent 39099cbdcf
commit 091bb7138b
1 changed files with 17 additions and 0 deletions

View File

@ -2857,6 +2857,23 @@ LegacyBiosInstallPciRom (
return EFI_UNSUPPORTED;
}
if (!Private->VgaInstalled) {
//
// A return status of EFI_NOT_FOUND is considered valid (No EFI
// driver is controlling video.
//
mVgaInstallationInProgress = TRUE;
Status = LegacyBiosInstallVgaRom (Private);
if (EFI_ERROR (Status)) {
if (Status != EFI_NOT_FOUND) {
mVgaInstallationInProgress = FALSE;
return Status;
}
} else {
mVgaInstallationInProgress = FALSE;
}
}
LocalRomImage = *RomImage;
Pcir = (PCI_3_0_DATA_STRUCTURE *)
((UINT8 *) LocalRomImage + ((PCI_EXPANSION_ROM_HEADER *) LocalRomImage)->PcirOffset);