From a8b194b97cd4d0cd46ce9880293c4500bd841fc1 Mon Sep 17 00:00:00 2001 From: xgu3 Date: Wed, 31 Jan 2007 07:18:41 +0000 Subject: 1. PEI core needs to check image machine type 2. In BDS, Legacy free may make BdsLibConnectAllDefaultConsoles fail. 3. Pci22.h, we need to add more definition in that 4. EBC: EBC Exception Subclass should add EFI_SUBCLASS_SPECIFIC 5. PciEnumeratorSupport Null Pointer Error git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2340 6f19259b-4bc3-4df7-8a09-765794883524 --- EdkUnixPkg/Library/EdkGenericBdsLib/BdsConsole.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'EdkUnixPkg/Library/EdkGenericBdsLib') diff --git a/EdkUnixPkg/Library/EdkGenericBdsLib/BdsConsole.c b/EdkUnixPkg/Library/EdkGenericBdsLib/BdsConsole.c index 6c9097f142..47a79ff34e 100644 --- a/EdkUnixPkg/Library/EdkGenericBdsLib/BdsConsole.c +++ b/EdkUnixPkg/Library/EdkGenericBdsLib/BdsConsole.c @@ -367,11 +367,18 @@ Returns: // // Connect all default console variables // - Status = BdsLibConnectConsoleVariable (L"ConIn"); - if (EFI_ERROR (Status)) { - return Status; - } + // + // Because possibly the platform is legacy free, in such case, + // ConIn devices (Serial Port and PS2 Keyboard ) does not exist, + // so we need not check the status. + // + BdsLibConnectConsoleVariable (L"ConIn"); + + // + // It seems impossible not to have any ConOut device on platform, + // so we check the status here. + // Status = BdsLibConnectConsoleVariable (L"ConOut"); if (EFI_ERROR (Status)) { return Status; -- cgit v1.2.3