Changeset 58466 in vbox for trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseDebugLibSerialPort
- Timestamp:
- Oct 29, 2015 4:30:44 AM (9 years ago)
- Location:
- trunk/src/VBox/Devices/EFI/Firmware
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/Firmware
- Property svn:mergeinfo changed
/vendor/edk2/current merged: 103769-103776
- Property svn:mergeinfo changed
-
trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
r58459 r58466 22 22 MODULE_TYPE = BASE 23 23 VERSION_STRING = 1.0 24 LIBRARY_CLASS = DebugLib 24 LIBRARY_CLASS = DebugLib 25 25 CONSTRUCTOR = BaseDebugLibSerialPortConstructor 26 26 -
trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseDebugLibSerialPort/DebugLib.c
r58459 r58466 2 2 Base Debug library instance base on Serial Port library. 3 3 It uses PrintLib to send debug messages to serial port device. 4 5 NOTE: If the Serial Port library enables hardware flow control, then a call 6 to DebugPrint() or DebugAssert() may hang if writes to the serial port are 4 5 NOTE: If the Serial Port library enables hardware flow control, then a call 6 to DebugPrint() or DebugAssert() may hang if writes to the serial port are 7 7 being blocked. This may occur if a key(s) are pressed in a terminal emulator 8 used to monitor the DEBUG() and ASSERT() messages. 8 used to monitor the DEBUG() and ASSERT() messages. 9 9 10 10 Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR> 11 This program and the accompanying materials 12 are licensed and made available under the terms and conditions of the BSD License 13 which accompanies this distribution. The full text of the license may be found at 14 http://opensource.org/licenses/bsd-license.php. 15 16 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 17 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 11 This program and the accompanying materials 12 are licensed and made available under the terms and conditions of the BSD License 13 which accompanies this distribution. The full text of the license may be found at 14 http://opensource.org/licenses/bsd-license.php. 15 16 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 17 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 18 18 19 19 **/ … … 29 29 30 30 // 31 // Define the maximum debug and assert message length that this library supports 31 // Define the maximum debug and assert message length that this library supports 32 32 // 33 33 #define MAX_DEBUG_MESSAGE_LENGTH 0x100 … … 51 51 Prints a debug message to the debug output device if the specified error level is enabled. 52 52 53 If any bit in ErrorLevel is also set in DebugPrintErrorLevelLib function 54 GetDebugPrintErrorLevel (), then print the message specified by Format and the 53 If any bit in ErrorLevel is also set in DebugPrintErrorLevelLib function 54 GetDebugPrintErrorLevel (), then print the message specified by Format and the 55 55 associated variable argument list to the debug output device. 56 56 … … 59 59 @param ErrorLevel The error level of the debug message. 60 60 @param Format Format string for the debug message to print. 61 @param ... Variable argument list whose contents are accessed 61 @param ... Variable argument list whose contents are accessed 62 62 based on the format string specified by Format. 63 63 … … 94 94 95 95 // 96 // Send the print string to a Serial Port 96 // Send the print string to a Serial Port 97 97 // 98 98 SerialPortWrite ((UINT8 *)Buffer, AsciiStrLen (Buffer)); … … 101 101 102 102 /** 103 Prints an assert message containing a filename, line number, and description. 103 Prints an assert message containing a filename, line number, and description. 104 104 This may be followed by a breakpoint or a dead loop. 105 105 106 106 Print a message of the form "ASSERT <FileName>(<LineNumber>): <Description>\n" 107 to the debug output device. If DEBUG_PROPERTY_ASSERT_BREAKPOINT_ENABLED bit of 108 PcdDebugProperyMask is set then CpuBreakpoint() is called. Otherwise, if 109 DEBUG_PROPERTY_ASSERT_DEADLOOP_ENABLED bit of PcdDebugProperyMask is set then 110 CpuDeadLoop() is called. If neither of these bits are set, then this function 107 to the debug output device. If DEBUG_PROPERTY_ASSERT_BREAKPOINT_ENABLED bit of 108 PcdDebugProperyMask is set then CpuBreakpoint() is called. Otherwise, if 109 DEBUG_PROPERTY_ASSERT_DEADLOOP_ENABLED bit of PcdDebugProperyMask is set then 110 CpuDeadLoop() is called. If neither of these bits are set, then this function 111 111 returns immediately after the message is printed to the debug output device. 112 112 DebugAssert() must actively prevent recursion. If DebugAssert() is called while … … 155 155 Fills a target buffer with PcdDebugClearMemoryValue, and returns the target buffer. 156 156 157 This function fills Length bytes of Buffer with the value specified by 157 This function fills Length bytes of Buffer with the value specified by 158 158 PcdDebugClearMemoryValue, and returns Buffer. 159 159 160 160 If Buffer is NULL, then ASSERT(). 161 If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). 161 If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). 162 162 163 163 @param Buffer The pointer to the target buffer to be filled with PcdDebugClearMemoryValue. 164 @param Length The number of bytes in Buffer to fill with zeros PcdDebugClearMemoryValue. 164 @param Length The number of bytes in Buffer to fill with zeros PcdDebugClearMemoryValue. 165 165 166 166 @return Buffer The pointer to the target buffer filled with PcdDebugClearMemoryValue. … … 189 189 Returns TRUE if ASSERT() macros are enabled. 190 190 191 This function returns TRUE if the DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED bit of 191 This function returns TRUE if the DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED bit of 192 192 PcdDebugProperyMask is set. Otherwise FALSE is returned. 193 193 … … 206 206 207 207 208 /** 208 /** 209 209 Returns TRUE if DEBUG() macros are enabled. 210 210 211 This function returns TRUE if the DEBUG_PROPERTY_DEBUG_PRINT_ENABLED bit of 211 This function returns TRUE if the DEBUG_PROPERTY_DEBUG_PRINT_ENABLED bit of 212 212 PcdDebugProperyMask is set. Otherwise FALSE is returned. 213 213 … … 226 226 227 227 228 /** 228 /** 229 229 Returns TRUE if DEBUG_CODE() macros are enabled. 230 230 231 This function returns TRUE if the DEBUG_PROPERTY_DEBUG_CODE_ENABLED bit of 231 This function returns TRUE if the DEBUG_PROPERTY_DEBUG_CODE_ENABLED bit of 232 232 PcdDebugProperyMask is set. Otherwise FALSE is returned. 233 233 … … 246 246 247 247 248 /** 248 /** 249 249 Returns TRUE if DEBUG_CLEAR_MEMORY() macro is enabled. 250 250 251 This function returns TRUE if the DEBUG_PROPERTY_CLEAR_MEMORY_ENABLED bit of 251 This function returns TRUE if the DEBUG_PROPERTY_CLEAR_MEMORY_ENABLED bit of 252 252 PcdDebugProperyMask is set. Otherwise FALSE is returned. 253 253
Note:
See TracChangeset
for help on using the changeset viewer.