24 IN EDB_DATA_WIDTH Width
37 CopyMem (&Data8, (VOID *)Address,
sizeof (UINT8));
39 return sizeof (UINT8);
41 CopyMem (&Data16, (VOID *)Address,
sizeof (UINT16));
43 return sizeof (UINT16);
45 CopyMem (&Data32, (VOID *)Address,
sizeof (UINT32));
47 return sizeof (UINT32);
49 CopyMem (&Data64, (VOID *)Address,
sizeof (UINT64));
51 return sizeof (UINT64);
76 IN EDB_DATA_WIDTH Width
109 LineNumber = Count / NumberInLine;
110 ByteNumber = Count % NumberInLine;
111 if (ByteNumber == 0) {
113 ByteNumber = NumberInLine;
119 for (LineIndex = 0; LineIndex < LineNumber; LineIndex++) {
123 if (((LineIndex % EFI_DEBUGGER_LINE_NUMBER_IN_PAGE) == 0) &&
132 for (ByteIndex = 0; ByteIndex < NumberInLine; ByteIndex++) {
142 if (((LineIndex % EFI_DEBUGGER_LINE_NUMBER_IN_PAGE) == 0) &&
154 for (ByteIndex = 0; ByteIndex < ByteNumber; ByteIndex++) {
174 IN EDB_DATA_WIDTH Width
179 CopyMem ((VOID *)Address, Value,
sizeof (UINT8));
182 CopyMem ((VOID *)Address, Value,
sizeof (UINT16));
185 CopyMem ((VOID *)Address, Value,
sizeof (UINT32));
188 CopyMem ((VOID *)Address, Value,
sizeof (UINT64));
211 IN CHAR16 *CommandArg,
223 CommandStr = CommandArg;
224 if (CommandStr ==
NULL) {
225 EDBPrint (L
"Memory: Address error!\n");
226 return EFI_INVALID_PARAMETER;
229 Status =
Symboltoi (CommandStr, &MemAddress);
230 if (EFI_ERROR (Status)) {
231 if (Status == EFI_NOT_FOUND) {
232 MemAddress =
Xtoi (CommandStr);
237 EDBPrint (L
"Command Argument error!\n");
238 return EFI_INVALID_PARAMETER;
242 *Address = MemAddress;
248 if (CommandStr ==
NULL) {
251 *Count =
Xtoi (CommandStr);
274 IN CHAR16 *CommandArg,
286 CommandStr = CommandArg;
287 if (CommandStr ==
NULL) {
288 EDBPrint (L
"Memory: Address error!\n");
289 return EFI_INVALID_PARAMETER;
292 Status =
Symboltoi (CommandStr, &MemAddress);
293 if (EFI_ERROR (Status)) {
294 if (Status == EFI_NOT_FOUND) {
295 MemAddress =
Xtoi (CommandStr);
300 EDBPrint (L
"Command Argument error!\n");
301 return EFI_INVALID_PARAMETER;
305 *Address = MemAddress;
311 if (CommandStr ==
NULL) {
312 EDBPrint (L
"Memory: Value error!\n");
313 return EFI_INVALID_PARAMETER;
316 *Value =
LXtoi (CommandStr);
336 IN CHAR16 *CommandArg,
337 IN EDB_DATA_WIDTH Width
348 if (EFI_ERROR (Status)) {
349 return EFI_DEBUG_CONTINUE;
360 return EFI_DEBUG_CONTINUE;
375 IN CHAR16 *CommandArg,
376 IN EDB_DATA_WIDTH Width
387 if (EFI_ERROR (Status)) {
388 return EFI_DEBUG_CONTINUE;
399 return EFI_DEBUG_CONTINUE;
416 IN CHAR16 *CommandArg,
439 IN CHAR16 *CommandArg,
462 IN CHAR16 *CommandArg,
485 IN CHAR16 *CommandArg,
508 IN CHAR16 *CommandArg,
531 IN CHAR16 *CommandArg,
554 IN CHAR16 *CommandArg,
577 IN CHAR16 *CommandArg,
VOID *EFIAPI CopyMem(OUT VOID *DestinationBuffer, IN CONST VOID *SourceBuffer, IN UINTN Length)
EFI_DEBUG_STATUS DebuggerMemoryDQ(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
EFI_DEBUG_STATUS DebuggerMemoryED(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
EFI_STATUS EdbGetMemoryAddressValue(IN CHAR16 *CommandArg, IN UINTN *Address, IN UINT64 *Value)
EFI_DEBUG_STATUS DebuggerMemoryEnter(IN CHAR16 *CommandArg, IN EDB_DATA_WIDTH Width)
EFI_DEBUG_STATUS DebuggerMemoryDW(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
EFI_DEBUG_STATUS DebuggerMemoryEW(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
VOID EdbDisplayMemory(IN UINTN Address, IN UINTN Count, IN EDB_DATA_WIDTH Width)
UINTN EdbDisplayMemoryUnit(IN UINTN Address, IN EDB_DATA_WIDTH Width)
EFI_DEBUG_STATUS DebuggerMemoryEQ(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
VOID EdbEnterMemory(IN UINTN Address, IN VOID *Value, IN EDB_DATA_WIDTH Width)
EFI_DEBUG_STATUS DebuggerMemoryDisplay(IN CHAR16 *CommandArg, IN EDB_DATA_WIDTH Width)
EFI_DEBUG_STATUS DebuggerMemoryEB(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
EFI_DEBUG_STATUS DebuggerMemoryDD(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
EFI_DEBUG_STATUS DebuggerMemoryDB(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
EFI_STATUS EdbGetMemoryAddressCount(IN CHAR16 *CommandArg, IN UINTN *Address, IN UINTN *Count)
UINTN EFIAPI Xtoi(CHAR16 *Str)
BOOLEAN EFIAPI SetPageBreak(VOID)
CHAR16 *EFIAPI StrGetNextTokenLine(IN CHAR16 *CharSet)
UINT64 EFIAPI LXtoi(CHAR16 *Str)
UINTN EFIAPI EDBPrint(IN CONST CHAR16 *Format,...)
EFI_STATUS Symboltoi(IN CHAR16 *Symbol, OUT UINTN *Address)