From ee65c5083b836d881d2724496e5353b0f3b1f252 Mon Sep 17 00:00:00 2001 From: li-elvin Date: Thu, 9 May 2013 08:47:09 +0000 Subject: Check if video device exists before trying to install Video OpROM. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14335 6f19259b-4bc3-4df7-8a09-765794883524 --- IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyPci.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'IntelFrameworkModulePkg') diff --git a/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyPci.c b/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyPci.c index 62d0feed3c..fd5641a874 100644 --- a/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyPci.c +++ b/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyPci.c @@ -2914,7 +2914,15 @@ LegacyBiosInstallPciRom ( return EFI_UNSUPPORTED; } - if (!Private->VgaInstalled) { + Status = Private->LegacyBiosPlatform->GetPlatformHandle ( + Private->LegacyBiosPlatform, + EfiGetPlatformVgaHandle, + 0, + &HandleBuffer, + &HandleCount, + NULL + ); + if ((!EFI_ERROR (Status)) && (!Private->VgaInstalled)) { // // A return status of EFI_NOT_FOUND is considered valid (No EFI // driver is controlling video. -- cgit v1.2.3