summaryrefslogtreecommitdiffstats
path: root/OvmfPkg
diff options
context:
space:
mode:
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2009-09-07 20:18:19 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2009-09-07 20:18:19 +0000
commit607ca5102e33d4329377cbf3455e2cd422f9ee16 (patch)
tree6e0cca07d65179775d31e48a092b61c0ad7d1e8c /OvmfPkg
parent77ba993c886a79b6199e941f4ddb7861ed3a211e (diff)
downloadedk2-607ca5102e33d4329377cbf3455e2cd422f9ee16.tar.gz
edk2-607ca5102e33d4329377cbf3455e2cd422f9ee16.tar.bz2
edk2-607ca5102e33d4329377cbf3455e2cd422f9ee16.zip
OVMF: Fix a hang after resetting when NV variables are preserved.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9242 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg')
-rw-r--r--OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c31
1 files changed, 11 insertions, 20 deletions
diff --git a/OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c b/OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c
index 3728d40bb1..e44c825358 100644
--- a/OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c
+++ b/OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c
@@ -462,6 +462,14 @@ Returns:
continue;
}
+ Status = PciIo->Attributes (
+ PciIo,
+ EfiPciIoAttributeOperationEnable,
+ EFI_PCI_DEVICE_ENABLE,
+ NULL
+ );
+ ASSERT_EFI_ERROR (Status);
+
if (!DetectVgaOnly) {
//
// Here we decide whether it is LPC Bridge
@@ -472,17 +480,11 @@ Returns:
(Pci.Hdr.DeviceId == 0x7000)
)
) {
- Status = PciIo->Attributes (
- PciIo,
- EfiPciIoAttributeOperationEnable,
- EFI_PCI_DEVICE_ENABLE,
- NULL
- );
//
// Add IsaKeyboard to ConIn,
// add IsaSerial to ConOut, ConIn, ErrOut
//
- DEBUG ((EFI_D_INFO, "Find the LPC Bridge device\n"));
+ DEBUG ((EFI_D_INFO, "Found LPC Bridge device\n"));
PrepareLpcBridgeDevicePath (HandleBuffer[Index]);
continue;
}
@@ -493,23 +495,12 @@ Returns:
//
// Add them to ConOut, ConIn, ErrOut.
//
- DEBUG ((EFI_D_INFO, "Find the 16550 SERIAL device\n"));
+ DEBUG ((EFI_D_INFO, "Found PCI 16550 SERIAL device\n"));
PreparePciSerialDevicePath (HandleBuffer[Index]);
continue;
}
}
- if ((Pci.Hdr.VendorId == 0x8086) &&
- (Pci.Hdr.DeviceId == 0x7010)
- ) {
- Status = PciIo->Attributes (
- PciIo,
- EfiPciIoAttributeOperationEnable,
- EFI_PCI_DEVICE_ENABLE,
- NULL
- );
- }
-
//
// Here we decide which VGA device to enable in PCI bus
//
@@ -517,7 +508,7 @@ Returns:
//
// Add them to ConOut.
//
- DEBUG ((EFI_D_INFO, "Find the VGA device\n"));
+ DEBUG ((EFI_D_INFO, "Found PCI VGA device\n"));
PreparePciVgaDevicePath (HandleBuffer[Index]);
continue;
}