// and ToBeCheckSum field to validate the mail box.\r
//\r
if (CheckSum != Mailbox->CheckSum && CheckSum != Mailbox->ToBeCheckSum) {\r
- DEBUG ((EFI_D_ERROR, "DebugAgent: Mailbox checksum error, stack or heap crashed!\n"));\r
- DEBUG ((EFI_D_ERROR, "DebugAgent: CheckSum = %x, Mailbox->CheckSum = %x, Mailbox->ToBeCheckSum = %x\n", CheckSum, Mailbox->CheckSum, Mailbox->ToBeCheckSum));\r
+ DEBUG ((DEBUG_ERROR, "DebugAgent: Mailbox checksum error, stack or heap crashed!\n"));\r
+ DEBUG ((DEBUG_ERROR, "DebugAgent: CheckSum = %x, Mailbox->CheckSum = %x, Mailbox->ToBeCheckSum = %x\n", CheckSum, Mailbox->CheckSum, Mailbox->ToBeCheckSum));\r
CpuDeadLoop ();\r
}\r
}\r
\r
return;\r
}\r
-\r
DisableApicTimerInterrupt ();\r
\r
if (DumpFlag) {\r
- DEBUG ((EFI_D_INFO, "Debug Timer: FSB Clock = %d\n", PcdGet32(PcdFSBClock)));\r
- DEBUG ((EFI_D_INFO, "Debug Timer: Divisor = %d\n", ApicTimerDivisor));\r
- DEBUG ((EFI_D_INFO, "Debug Timer: Frequency = %d\n", ApicTimerFrequency));\r
- DEBUG ((EFI_D_INFO, "Debug Timer: InitialCount = %d\n", InitialCount));\r
+ DEBUG ((DEBUG_INFO, "Debug Timer: FSB Clock = %d\n", PcdGet32(PcdFSBClock)));\r
+ DEBUG ((DEBUG_INFO, "Debug Timer: Divisor = %d\n", ApicTimerDivisor));\r
+ DEBUG ((DEBUG_INFO, "Debug Timer: Frequency = %d\n", ApicTimerFrequency));\r
+ DEBUG ((DEBUG_INFO, "Debug Timer: InitialCount = %d\n", InitialCount));\r
}\r
if (TimerFrequency != NULL) {\r
*TimerFrequency = ApicTimerFrequency;\r
\r
return (BOOLEAN) (Delta >= TimeoutTicker);\r
}\r
-\r
//\r
Status = gBS->InstallConfigurationTable (&gEfiVectorHandoffTableGuid, (VOID *) &mVectorHandoffInfoDebugAgent[0]);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((EFI_D_ERROR, "DebugAgent: Cannot install configuration table for persisted vector handoff info!\n"));\r
+ DEBUG ((DEBUG_ERROR, "DebugAgent: Cannot install configuration table for persisted vector handoff info!\n"));\r
CpuDeadLoop ();\r
}\r
}\r
&Address\r
);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((EFI_D_ERROR, "DebugAgent: Cannot install configuration table for mailbox!\n"));\r
+ DEBUG ((DEBUG_ERROR, "DebugAgent: Cannot install configuration table for mailbox!\n"));\r
CpuDeadLoop ();\r
}\r
\r
\r
Status = gBS->InstallConfigurationTable (&gEfiDebugAgentGuid, (VOID *) mMailboxPointer);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((EFI_D_ERROR, "DebugAgent: Failed to install configuration for mailbox!\n"));\r
+ DEBUG ((DEBUG_ERROR, "DebugAgent: Failed to install configuration for mailbox!\n"));\r
CpuDeadLoop ();\r
}\r
}\r
// Check if Debug Agent has been initialized before\r
//\r
if (IsDebugAgentInitialzed ()) {\r
- DEBUG ((EFI_D_INFO, "Debug Agent: The former agent will be overwritten by the new one!\n"));\r
+ DEBUG ((DEBUG_INFO, "Debug Agent: The former agent will be overwritten by the new one!\n"));\r
}\r
\r
mMultiProcessorDebugSupport = TRUE;\r
// Only DEBUG_AGENT_INIT_PREMEM_SEC and DEBUG_AGENT_INIT_POSTMEM_SEC are allowed for this\r
// Debug Agent library instance.\r
//\r
- DEBUG ((EFI_D_ERROR, "Debug Agent: The InitFlag value is not allowed!\n"));\r
+ DEBUG ((DEBUG_ERROR, "Debug Agent: The InitFlag value is not allowed!\n"));\r
CpuDeadLoop ();\r
break;\r
}\r
NULL\r
);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((EFI_D_ERROR, "Debug Agent: Failed to install EFI Serial IO Protocol on Debug Port!\n"));\r
+ DEBUG ((DEBUG_ERROR, "Debug Agent: Failed to install EFI Serial IO Protocol on Debug Port!\n"));\r
}\r
}\r
\r
//\r
// If reaches here, it means Debug Port initialization failed.\r
//\r
- DEBUG ((EFI_D_ERROR, "Debug Agent: Debug port initialization failed.\n"));\r
+ DEBUG ((DEBUG_ERROR, "Debug Agent: Debug port initialization failed.\n"));\r
\r
break;\r
\r
//\r
Status = PeiServicesInstallPpi (&mVectorHandoffInfoPpiList[0]);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((EFI_D_ERROR, "DebugAgent: Failed to install Vector Handoff Info PPI!\n"));\r
+ DEBUG ((DEBUG_ERROR, "DebugAgent: Failed to install Vector Handoff Info PPI!\n"));\r
CpuDeadLoop ();\r
}\r
//\r
&Address\r
);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((EFI_D_ERROR, "DebugAgent: Failed to allocate pages!\n"));\r
+ DEBUG ((DEBUG_ERROR, "DebugAgent: Failed to allocate pages!\n"));\r
CpuDeadLoop ();\r
}\r
NewMailbox = (DEBUG_AGENT_MAILBOX *) (UINTN) Address;\r
\r
case DEBUG_AGENT_INIT_PEI:\r
if (Context == NULL) {\r
- DEBUG ((EFI_D_ERROR, "DebugAgent: Input parameter Context cannot be NULL!\n"));\r
+ DEBUG ((DEBUG_ERROR, "DebugAgent: Input parameter Context cannot be NULL!\n"));\r
CpuDeadLoop ();\r
}\r
//\r
// Check if Debug Agent has initialized before\r
//\r
if (IsDebugAgentInitialzed()) {\r
- DEBUG ((EFI_D_WARN, "Debug Agent: It has already initialized in SEC Core!\n"));\r
+ DEBUG ((DEBUG_WARN, "Debug Agent: It has already initialized in SEC Core!\n"));\r
break;\r
}\r
//\r
//\r
Status = PeiServicesInstallPpi (&mVectorHandoffInfoPpiList[0]);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((EFI_D_ERROR, "DebugAgent: Failed to install Vector Handoff Info PPI!\n"));\r
+ DEBUG ((DEBUG_ERROR, "DebugAgent: Failed to install Vector Handoff Info PPI!\n"));\r
CpuDeadLoop ();\r
}\r
//\r
//\r
Mailbox = AllocateZeroPool (sizeof (DEBUG_AGENT_MAILBOX));\r
if (Mailbox == NULL) {\r
- DEBUG ((EFI_D_ERROR, "DebugAgent: Failed to allocate memory!\n"));\r
+ DEBUG ((DEBUG_ERROR, "DebugAgent: Failed to allocate memory!\n"));\r
CpuDeadLoop ();\r
} else {\r
MailboxLocation = (UINT64)(UINTN)Mailbox;\r
//\r
Status = PeiServicesNotifyPpi (&mDebugAgentMemoryDiscoveredNotifyList[0]);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((EFI_D_ERROR, "DebugAgent: Failed to register memory discovered callback function!\n"));\r
+ DEBUG ((DEBUG_ERROR, "DebugAgent: Failed to register memory discovered callback function!\n"));\r
CpuDeadLoop ();\r
}\r
//\r
\r
case DEBUG_AGENT_INIT_THUNK_PEI_IA32TOX64:\r
if (Context == NULL) {\r
- DEBUG ((EFI_D_ERROR, "DebugAgent: Input parameter Context cannot be NULL!\n"));\r
+ DEBUG ((DEBUG_ERROR, "DebugAgent: Input parameter Context cannot be NULL!\n"));\r
CpuDeadLoop ();\r
} else {\r
Ia32Idtr = (IA32_DESCRIPTOR *) Context;\r
// Only DEBUG_AGENT_INIT_PREMEM_SEC and DEBUG_AGENT_INIT_POSTMEM_SEC are allowed for this\r
// Debug Agent library instance.\r
//\r
- DEBUG ((EFI_D_ERROR, "Debug Agent: The InitFlag value is not allowed!\n"));\r
+ DEBUG ((DEBUG_ERROR, "Debug Agent: The InitFlag value is not allowed!\n"));\r
CpuDeadLoop ();\r
break;\r
}\r
sizeof (EFI_VECTOR_HANDOFF_INFO) * mVectorHandoffInfoCount\r
);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((EFI_D_ERROR, "DebugAgent: Cannot install configuration table for persisted vector handoff info!\n"));\r
+ DEBUG ((DEBUG_ERROR, "DebugAgent: Cannot install configuration table for persisted vector handoff info!\n"));\r
CpuDeadLoop ();\r
}\r
//\r
\r
case DEBUG_AGENT_INIT_THUNK_PEI_IA32TOX64:\r
if (Context == NULL) {\r
- DEBUG ((EFI_D_ERROR, "DebugAgent: Input parameter Context cannot be NULL!\n"));\r
+ DEBUG ((DEBUG_ERROR, "DebugAgent: Input parameter Context cannot be NULL!\n"));\r
CpuDeadLoop ();\r
} else {\r
Ia32Idtr = (IA32_DESCRIPTOR *) Context;\r
// Only DEBUG_AGENT_INIT_PREMEM_SEC and DEBUG_AGENT_INIT_POSTMEM_SEC are allowed for this\r
// Debug Agent library instance.\r
//\r
- DEBUG ((EFI_D_ERROR, "Debug Agent: The InitFlag value is not allowed!\n"));\r
+ DEBUG ((DEBUG_ERROR, "Debug Agent: The InitFlag value is not allowed!\n"));\r
CpuDeadLoop ();\r
break;\r
}\r
}\r
-\r
\r
Status = SerialPortInitialize ();\r
if (RETURN_ERROR(Status)) {\r
- DEBUG ((EFI_D_ERROR, "Debug Serial Port: Initialization failed!\n"));\r
+ DEBUG ((DEBUG_ERROR, "Debug Serial Port: Initialization failed!\n"));\r
}\r
\r
if (Function != NULL) {\r
{\r
return SerialPortPoll ();\r
}\r
-\r
if (((MmioRead32((UINTN)&UsbDebugPortRegister->ControlStatus) & (USB_DEBUG_PORT_OWNER | USB_DEBUG_PORT_IN_USE))\r
!= (USB_DEBUG_PORT_OWNER | USB_DEBUG_PORT_IN_USE)) || (Handle->Initialized == USBDBG_RESET)) {\r
DEBUG ((\r
- EFI_D_INFO,\r
+ DEBUG_INFO,\r
"UsbDbg: Need to reset the host controller. ControlStatus = %08x\n",\r
MmioRead32((UINTN)&UsbDebugPortRegister->ControlStatus)\r
));\r
// If the host controller is halted, then reset and restart it.\r
//\r
if ((MmioRead32((UINTN)UsbStatus) & BIT12) != 0) {\r
- DEBUG ((EFI_D_INFO, "UsbDbg: Reset the host controller.\n"));\r
+ DEBUG ((DEBUG_INFO, "UsbDbg: Reset the host controller.\n"));\r
//\r
// reset the host controller.\r
//\r
\r
if (Handle->Initialized != USBDBG_INIT_DONE ||\r
(MmioRead32 ((UINTN) &UsbDebugPortRegister->ControlStatus) & USB_DEBUG_PORT_ENABLE) == 0) {\r
- DEBUG ((EFI_D_INFO, "UsbDbg: Reset the debug port.\n"));\r
+ DEBUG ((DEBUG_INFO, "UsbDbg: Reset the debug port.\n"));\r
//\r
// Reset the debug port\r
//\r
\r
Status = CalculateUsbDebugPortBar(&Handle.DebugPortOffset, &Handle.DebugPortBarNumber);\r
if (RETURN_ERROR (Status)) {\r
- DEBUG ((EFI_D_ERROR, "UsbDbg: the pci device pointed by PcdUsbEhciPciAddress is not EHCI host controller or does not support debug port capability!\n"));\r
+ DEBUG ((DEBUG_ERROR, "UsbDbg: the pci device pointed by PcdUsbEhciPciAddress is not EHCI host controller or does not support debug port capability!\n"));\r
goto Exit;\r
}\r
\r
Handle.Initialized = USBDBG_RESET;\r
\r
if (NeedReinitializeHardware(&Handle)) {\r
- DEBUG ((EFI_D_ERROR, "UsbDbg: Start EHCI debug port initialization!\n"));\r
+ DEBUG ((DEBUG_ERROR, "UsbDbg: Start EHCI debug port initialization!\n"));\r
Status = InitializeUsbDebugHardware (&Handle);\r
if (RETURN_ERROR(Status)) {\r
- DEBUG ((EFI_D_ERROR, "UsbDbg: Failed, please check if USB debug cable is plugged into EHCI debug port correctly!\n"));\r
+ DEBUG ((DEBUG_ERROR, "UsbDbg: Failed, please check if USB debug cable is plugged into EHCI debug port correctly!\n"));\r
goto Exit;\r
}\r
}\r
\r
return (DEBUG_PORT_HANDLE)(UINTN)&mDebugCommunicationLibUsbDebugPortHandle;\r
}\r
-\r
ASSERT (ImageContext != NULL);\r
\r
if (ImageContext->PdbPointer != NULL) {\r
- DEBUG((EFI_D_ERROR, " PDB = %a\n", ImageContext->PdbPointer));\r
+ DEBUG((DEBUG_ERROR, " PDB = %a\n", ImageContext->PdbPointer));\r
}\r
\r
//\r