mirror of https://github.com/acidanthera/audk.git
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:
parent
39099cbdcf
commit
091bb7138b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue