]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkNt32Pkg/Library/EdkGenericBdsLib/BdsConsole.c
1. PEI core needs to check image machine type
[mirror_edk2.git] / EdkNt32Pkg / Library / EdkGenericBdsLib / BdsConsole.c
index 6c9097f142eb963ee2e1df3b763822f6157b2090..47a79ff34e068b692853bee72847e4369352b203 100644 (file)
@@ -367,11 +367,18 @@ Returns:
   //\r
   // Connect all default console variables\r
   //\r
-  Status = BdsLibConnectConsoleVariable (L"ConIn");\r
-  if (EFI_ERROR (Status)) {\r
-    return Status;\r
-  }\r
 \r
+  //\r
+  // Because possibly the platform is legacy free, in such case,\r
+  // ConIn devices (Serial Port and PS2 Keyboard ) does not exist, \r
+  // so we need not check the status.\r
+  //  \r
+  BdsLibConnectConsoleVariable (L"ConIn");\r
+\r
+  // \r
+  // It seems impossible not to have any ConOut device on platform,\r
+  // so we check the status here.\r
+  //\r
   Status = BdsLibConnectConsoleVariable (L"ConOut");\r
   if (EFI_ERROR (Status)) {\r
     return Status;\r