EmbeddedPkg: Fix various typos

Fix various typos in EmbeddedPkg.

Signed-off-by: Coeur <coeur@gmx.fr>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
This commit is contained in:
Cœur
2019-07-03 14:25:30 +01:00
committed by Leif Lindholm
parent 16f3544ddd
commit c6a72cd794
34 changed files with 84 additions and 84 deletions

View File

@@ -298,7 +298,7 @@ CHAR8
/** P n...=r...
Writes the new value of n-th register received into the input buffer to the n-th register
@param SystemContext Register content at time of the exception
@param InBuffer Ponter to the input buffer received from gdb server
@param InBuffer Pointer to the input buffer received from gdb server
**/
VOID
WriteNthRegister (

View File

@@ -2,7 +2,7 @@
UEFI driver that implements a GDB stub
Note: Any code in the path of the Serial IO output can not call DEBUG as will
will blow out the stack. Serial IO calls DEBUG, debug calls Serail IO, ...
will blow out the stack. Serial IO calls DEBUG, debug calls Serial IO, ...
Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
@@ -260,10 +260,10 @@ TransferFromMemToOutBufAndSend (
Send a GDB Remote Serial Protocol Packet
$PacketData#checksum PacketData is passed in and this function adds the packet prefix '$',
the packet teminating character '#' and the two digit checksum.
the packet terminating character '#' and the two digit checksum.
If an ack '+' is not sent resend the packet, but timeout eventually so we don't end up
in an infinit loop. This is so if you unplug the debugger code just keeps running
in an infinite loop. This is so if you unplug the debugger code just keeps running
@param PacketData Payload data for the packet
@@ -317,7 +317,7 @@ SendPacket (
Receive a GDB Remote Serial Protocol Packet
$PacketData#checksum PacketData is passed in and this function adds the packet prefix '$',
the packet teminating character '#' and the two digit checksum.
the packet terminating character '#' and the two digit checksum.
If host re-starts sending a packet without ending the previous packet, only the last valid packet is processed.
(In other words, if received packet is '$12345$12345$123456#checksum', only '$123456#checksum' will be processed.)
@@ -407,7 +407,7 @@ EmptyBuffer (
Converts an 8-bit Hex Char into a INTN.
@param Char the hex character to be converted into UINTN
@retval a INTN, from 0 to 15, that corressponds to Char
@retval a INTN, from 0 to 15, that corresponds to Char
-1 if Char is not a hex character
**/
INTN
@@ -596,7 +596,7 @@ ConvertEFItoGDBtype (
/** "m addr,length"
Find the Length of the area to read and the start addres. Finally, pass them to
Find the Length of the area to read and the start address. Finally, pass them to
another function, TransferFromMemToOutBufAndSend, that will read from that memory space and
send it as a packet.
**/
@@ -644,7 +644,7 @@ ReadFromMemory (
/** "M addr,length :XX..."
Find the Length of the area in bytes to write and the start addres. Finally, pass them to
Find the Length of the area in bytes to write and the start address. Finally, pass them to
another function, TransferFromInBufToMem, that will write to that memory space the info in
the input buffer.
**/
@@ -918,7 +918,7 @@ PeCoffLoaderGetDebuggerInfo (
break;
default:
//
// For unknow Machine field, use Magic in optional Header
// For unknown Machine field, use Magic in optional Header
//
Magic = Hdr.Pe32->OptionalHeader.Magic;
}
@@ -1088,7 +1088,7 @@ QxferLibrary (
/**
Exception Hanldler for GDB. It will be called for all exceptions
Exception Handler for GDB. It will be called for all exceptions
registered via the gExceptionType[] array.
@param ExceptionType Exception that is being processed
@@ -1157,7 +1157,7 @@ GdbExceptionHandler (
case 'q':
// General Query Packets
if (AsciiStrnCmp (gInBuffer, "qSupported", 10) == 0) {
// return what we currently support, we don't parse what gdb suports
// return what we currently support, we don't parse what gdb supports
AsciiSPrint (gOutBuffer, MAX_BUF_SIZE, "qXfer:libraries:read+;PacketSize=%d", MAX_BUF_SIZE);
SendPacket (gOutBuffer);
} else if (AsciiStrnCmp (gInBuffer, "qXfer:libraries:read::", 22) == 0) {

View File

@@ -67,7 +67,7 @@ extern CONST CHAR8 mHexToStr[];
#define GDB_EBADMEMADDRBUFSIZE 11 // the buffer that stores memory Address to be read from/written to is not the right size
#define GDB_EBADMEMLENGBUFSIZE 12 // the buffer that stores Length is not the right size
#define GDB_EBADMEMLENGTH 13 // Length, the given number of bytes to read or write, is not the right size
#define GDB_EBADMEMDATA 14 // one of the bytes or nibbles of the memory is leess than 0
#define GDB_EBADMEMDATA 14 // one of the bytes or nibbles of the memory is less than 0
#define GDB_EBADMEMDATASIZE 15 // the memory data, 'XX..', is too short or too long
#define GDB_EBADBUFSIZE 21 // the buffer created is not the correct size
#define GDB_EINVALIDARG 31 // argument is invalid
@@ -99,7 +99,7 @@ extern CONST CHAR8 mHexToStr[];
typedef struct {
VENDOR_DEVICE_PATH VendorDevice;
UINT32 Index; // Suport more than one
UINT32 Index; // Support more than one
EFI_DEVICE_PATH_PROTOCOL End;
} GDB_SERIAL_DEVICE_PATH;
@@ -210,8 +210,8 @@ extern BOOLEAN gCtrlCBreakFlag;
//
// If the periodic callback is called while we are processing an F packet we need
// to let the callback know to not read from the serail stream as it could steal
// characters from the F reponse packet
// to let the callback know to not read from the serial stream as it could steal
// characters from the F response packet
//
extern BOOLEAN gProcessingFPacket;
@@ -296,7 +296,7 @@ EmptyBuffer (
Converts an 8-bit Hex Char into a INTN.
@param Char - the hex character to be converted into UINTN
@retval a INTN, from 0 to 15, that corressponds to Char
@retval a INTN, from 0 to 15, that corresponds to Char
-1 if Char is not a hex character
**/
INTN
@@ -384,7 +384,7 @@ WriteGeneralRegisters (
/** m addr,length
Find the Length of the area to read and the start addres. Finally, pass them to
Find the Length of the area to read and the start address. Finally, pass them to
another function, TransferFromMemToOutBufAndSend, that will read from that memory space and
send it as a packet.
@@ -397,7 +397,7 @@ ReadFromMemory (
/** M addr,length :XX...
Find the Length of the area in bytes to write and the start addres. Finally, pass them to
Find the Length of the area in bytes to write and the start address. Finally, pass them to
another function, TransferFromInBufToMem, that will write to that memory space the info in
the input buffer.
@@ -499,7 +499,7 @@ RemoveBreakPoint(
/**
Exception Hanldler for GDB. It will be called for all exceptions
Exception Handler for GDB. It will be called for all exceptions
registered via the gExceptionType[] array.
@param ExceptionType Exception that is being processed
@@ -529,7 +529,7 @@ GdbPeriodicCallBack (
/**
Make two serail consoles: 1) StdIn and StdOut via GDB. 2) StdErr via GDB.
Make two serial consoles: 1) StdIn and StdOut via GDB. 2) StdErr via GDB.
These console show up on the remote system running GDB
@@ -545,10 +545,10 @@ GdbInitializeSerialConsole (
Send a GDB Remote Serial Protocol Packet
$PacketData#checksum PacketData is passed in and this function adds the packet prefix '$',
the packet teminating character '#' and the two digit checksum.
the packet terminating character '#' and the two digit checksum.
If an ack '+' is not sent resend the packet, but timeout eventually so we don't end up
in an infinit loop. This is so if you unplug the debugger code just keeps running
in an infinite loop. This is so if you unplug the debugger code just keeps running
@param PacketData Payload data for the packet
@@ -565,7 +565,7 @@ SendPacket (
Receive a GDB Remote Serial Protocol Packet
$PacketData#checksum PacketData is passed in and this function adds the packet prefix '$',
the packet teminating character '#' and the two digit checksum.
the packet terminating character '#' and the two digit checksum.
If host re-starts sending a packet without ending the previous packet, only the last valid packet is processed.
(In other words, if received packet is '$12345$12345$123456#checksum', only '$123456#checksum' will be processed.)

View File

@@ -285,7 +285,7 @@ BasicWriteRegister (
Writes the new value of n-th register received into the input buffer to the n-th register
@param SystemContext Register content at time of the exception
@param InBuffer Ponter to the input buffer received from gdb server
@param InBuffer Pointer to the input buffer received from gdb server
**/
VOID
EFIAPI
@@ -667,7 +667,7 @@ EnableDebugRegister (
/**
Returns register number 0 - 3 for the maching debug register.
Returns register number 0 - 3 for the matching debug register.
This function compares incoming Address, Type, Length and
if there is a match then it returns the appropriate register number.
In case of mismatch, function returns EFI_NOT_FOUND message.

View File

@@ -1,8 +1,8 @@
/** @file
Serial IO Abstraction for GDB stub. This allows an EFI consoles that shows up on the system
running GDB. One consle for error information and another console for user input/output.
running GDB. One console for error information and another console for user input/output.
Basic packet format is $packet-data#checksum. So every comand has 4 bytes of overhead: $,
Basic packet format is $packet-data#checksum. So every command has 4 bytes of overhead: $,
#, 0, 0. The 0 and 0 are the ascii characters for the checksum.
@@ -22,8 +22,8 @@ BOOLEAN gCtrlCBreakFlag = FALSE;
//
// If the periodic callback is called while we are processing an F packet we need
// to let the callback know to not read from the serail stream as it could steal
// characters from the F reponse packet
// to let the callback know to not read from the serial stream as it could steal
// characters from the F response packet
//
BOOLEAN gProcessingFPacket = FALSE;
@@ -32,7 +32,7 @@ BOOLEAN gProcessingFPacket = FALSE;
Currently a place holder, remove the ASSERT when it gets implemented.
@param ErrNo Error infomration from the F reply packet or other source
@param ErrNo Error information from the F reply packet or other source
**/
@@ -69,7 +69,7 @@ GdbParseFReplyPacket (
INTN RetCode;
if (Packet[0] != 'F') {
// A valid responce would be an F packet
// A valid response would be an F packet
return -1;
}
@@ -281,15 +281,15 @@ GdbSerialReset (
/**
Sets the baud rate, receive FIFO depth, transmit/receice time out, parity,
Sets the baud rate, receive FIFO depth, transmit/receive time out, parity,
data buts, and stop bits on a serial device.
@param This Protocol instance pointer.
@param BaudRate The requested baud rate. A BaudRate value of 0 will use the the
device's default interface speed.
@param ReveiveFifoDepth The requested depth of the FIFO on the receive side of the
@param ReceiveFifoDepth The requested depth of the FIFO on the receive side of the
serial interface. A ReceiveFifoDepth value of 0 will use
the device's dfault FIFO depth.
the device's default FIFO depth.
@param Timeout The requested time out for a single character in microseconds.
This timeout applies to both the transmit and receive side of the
interface. A Timeout value of 0 will use the device's default time
@@ -297,7 +297,7 @@ GdbSerialReset (
@param Parity The type of parity to use on this serial device. A Parity value of
DefaultParity will use the device's default parity value.
@param DataBits The number of data bits to use on the serial device. A DataBits
vaule of 0 will use the device's default data bit setting.
value of 0 will use the device's default data bit setting.
@param StopBits The number of stop bits to use on this serial device. A StopBits
value of DefaultStopBits will use the device's default number of
stop bits.
@@ -345,7 +345,7 @@ GdbSerialSetControl (
/**
Retrieves the status of thecontrol bits on a serial device
Retrieves the status of the control bits on a serial device
@param This Protocol instance pointer.
@param Control A pointer to return the current Control signals from the serial device.
@@ -444,7 +444,7 @@ GdbSerialRead (
//
// Template used to initailize the GDB Serial IO protocols
// Template used to initialize the GDB Serial IO protocols
//
GDB_SERIAL_DEV gdbSerialDevTemplate = {
GDB_SERIAL_DEV_SIGNATURE,

View File

@@ -254,7 +254,7 @@ BasicWriteRegister (
Writes the new value of n-th register received into the input buffer to the n-th register
@param SystemContext Register content at time of the exception
@param InBuffer Ponter to the input buffer received from gdb server
@param InBuffer Pointer to the input buffer received from gdb server
**/
VOID
EFIAPI
@@ -638,7 +638,7 @@ EnableDebugRegister (
/**
Returns register number 0 - 3 for the maching debug register.
Returns register number 0 - 3 for the matching debug register.
This function compares incoming Address, Type, Length and
if there is a match then it returns the appropriate register number.
In case of mismatch, function returns EFI_NOT_FOUND message.