25 IN CHAR16 *CommandArg,
38 if (CommandArg == 0) {
40 L
" R0 - 0x%016lx, R1 - 0x%016lx\n",
41 SystemContext.SystemContextEbc->R0,
42 SystemContext.SystemContextEbc->R1
45 L
" R2 - 0x%016lx, R3 - 0x%016lx\n",
46 SystemContext.SystemContextEbc->R2,
47 SystemContext.SystemContextEbc->R3
50 L
" R4 - 0x%016lx, R5 - 0x%016lx\n",
51 SystemContext.SystemContextEbc->R4,
52 SystemContext.SystemContextEbc->R5
55 L
" R6 - 0x%016lx, R7 - 0x%016lx\n",
56 SystemContext.SystemContextEbc->R6,
57 SystemContext.SystemContextEbc->R7
60 L
" Flags - 0x%016lx, ControlFlags - 0x%016lx\n",
61 SystemContext.SystemContextEbc->Flags,
62 SystemContext.SystemContextEbc->ControlFlags
66 SystemContext.SystemContextEbc->Ip
68 return EFI_DEBUG_CONTINUE;
79 if (RegValStr ==
NULL) {
80 EDBPrint (L
"Invalid Register Value\n");
81 return EFI_DEBUG_CONTINUE;
84 RegVal =
LXtoi (RegValStr);
89 if (
StriCmp (RegName, L
"R0") == 0) {
90 SystemContext.SystemContextEbc->R0 = RegVal;
91 }
else if (
StriCmp (RegName, L
"R1") == 0) {
92 SystemContext.SystemContextEbc->R1 = RegVal;
93 }
else if (
StriCmp (RegName, L
"R2") == 0) {
94 SystemContext.SystemContextEbc->R2 = RegVal;
95 }
else if (
StriCmp (RegName, L
"R3") == 0) {
96 SystemContext.SystemContextEbc->R3 = RegVal;
97 }
else if (
StriCmp (RegName, L
"R4") == 0) {
98 SystemContext.SystemContextEbc->R4 = RegVal;
99 }
else if (
StriCmp (RegName, L
"R5") == 0) {
100 SystemContext.SystemContextEbc->R5 = RegVal;
101 }
else if (
StriCmp (RegName, L
"R6") == 0) {
102 SystemContext.SystemContextEbc->R6 = RegVal;
103 }
else if (
StriCmp (RegName, L
"R7") == 0) {
104 SystemContext.SystemContextEbc->R7 = RegVal;
105 }
else if (
StriCmp (RegName, L
"Flags") == 0) {
106 SystemContext.SystemContextEbc->Flags = RegVal;
107 }
else if (
StriCmp (RegName, L
"ControlFlags") == 0) {
108 SystemContext.SystemContextEbc->ControlFlags = RegVal;
109 }
else if (
StriCmp (RegName, L
"Ip") == 0) {
110 SystemContext.SystemContextEbc->Ip = RegVal;
112 EDBPrint (L
"Invalid Register - %s\n", RegName);
118 return EFI_DEBUG_CONTINUE;
EFI_DEBUG_STATUS DebuggerRegister(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
CHAR16 *EFIAPI StrGetNextTokenLine(IN CHAR16 *CharSet)
UINT64 EFIAPI LXtoi(CHAR16 *Str)
UINTN EFIAPI EDBPrint(IN CONST CHAR16 *Format,...)
INTN EFIAPI StriCmp(IN CHAR16 *String, IN CHAR16 *String2)