From e21048345b3ca6cede46b0d3db991a214c1f9f7d Mon Sep 17 00:00:00 2001 From: vanjeff Date: Fri, 30 Sep 2011 02:19:28 +0000 Subject: 1. Fixed issue that firmware cannot boot if no USB debug cable connection. 2. Fixed issue that Ovmf with debug agent cannot boot if HOST software was not connected. Signed-off-by: vanjeff Reviewed-by: geekboy15a Reviewed-by: erictian git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12486 6f19259b-4bc3-4df7-8a09-765794883524 --- .../DebugCommunicationLibSerialPort.c | 10 ++++++++-- .../DebugCommunicationLibSerialPort.inf | 3 ++- 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort') diff --git a/SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.c b/SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.c index ed1a35bd96..dd88e7d693 100644 --- a/SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.c +++ b/SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.c @@ -1,7 +1,7 @@ /** @file Debug Port Library implementation based on serial port. - Copyright (c) 2010, Intel Corporation. All rights reserved.
+ Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -17,6 +17,7 @@ #include #include #include +#include /** Initialize the debug port. @@ -61,7 +62,12 @@ DebugPortInitialize ( IN DEBUG_PORT_CONTINUE Function ) { - SerialPortInitialize (); + RETURN_STATUS Status; + + Status = SerialPortInitialize (); + if (RETURN_ERROR(Status)) { + DEBUG ((EFI_D_ERROR, "Debug Serial Port: Initialization failed!\n")); + } if (Function != NULL) { Function (Context, NULL); diff --git a/SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf b/SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf index dff0fc92b1..6d36cefd74 100644 --- a/SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf +++ b/SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf @@ -1,7 +1,7 @@ ## @file # Debug Communication Library instance based on serila port. # -# Copyright (c) 2010, Intel Corporation. All rights reserved.
+# Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.
# # This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License @@ -35,4 +35,5 @@ [LibraryClasses] SerialPortLib TimerLib + DebugLib -- cgit v1.2.3