EFI_ERROR (Status) ? DEBUG_ERROR : DEBUG_VERBOSE,\r
"%a: %a: add [%Lx, %Lx): %r\n",\r
gEfiCallerBaseName,\r
- __FUNCTION__,\r
+ __func__,\r
IntersectionBase,\r
IntersectionEnd,\r
Status\r
"%a: %a: desc [%Lx, %Lx) type %u cap %Lx conflicts "\r
"with aperture [%Lx, %Lx) cap %Lx\n",\r
gEfiCallerBaseName,\r
- __FUNCTION__,\r
+ __func__,\r
Descriptor->BaseAddress,\r
Descriptor->BaseAddress + Descriptor->Length,\r
(UINT32)Descriptor->GcdMemoryType,\r
DEBUG_ERROR,\r
"%a: %a: GetMemorySpaceMap(): %r\n",\r
gEfiCallerBaseName,\r
- __FUNCTION__,\r
+ __func__,\r
Status\r
));\r
return Status;\r
DEBUG_INFO,\r
"%a: %a: AllocateMemorySpace() Status - %r\n",\r
gEfiCallerBaseName,\r
- __FUNCTION__,\r
+ __func__,\r
Status\r
));\r
}\r
IN UINT64 Attributes\r
)\r
{\r
- DEBUG ((DEBUG_INFO, "%a: Set memory attributes not supported yet\n", __FUNCTION__));\r
+ DEBUG ((DEBUG_INFO, "%a: Set memory attributes not supported yet\n", __func__));\r
return EFI_SUCCESS;\r
}\r
\r
return EFI_NOT_FOUND;\r
}\r
\r
- DEBUG ((DEBUG_INFO, " %a: Firmware Context is at 0x%x.\n", __FUNCTION__, FirmwareContext));\r
+ DEBUG ((DEBUG_INFO, " %a: Firmware Context is at 0x%x.\n", __func__, FirmwareContext));\r
\r
mBootHartId = FirmwareContext->BootHartId;\r
- DEBUG ((DEBUG_INFO, " %a: mBootHartId = 0x%x.\n", __FUNCTION__, mBootHartId));\r
+ DEBUG ((DEBUG_INFO, " %a: mBootHartId = 0x%x.\n", __func__, mBootHartId));\r
\r
InitializeCpuExceptionHandlers (NULL);\r
\r
);\r
ASSERT_EFI_ERROR (Status);\r
\r
- DEBUG ((DEBUG_VERBOSE, "%a\n", __FUNCTION__));\r
+ DEBUG ((DEBUG_VERBOSE, "%a\n", __func__));\r
MtrrGetAllMtrrs (&AcpiCpuDataEx->MtrrTable);\r
\r
//\r
IN EFI_CPU_INTERRUPT_HANDLER InterruptHandler\r
)\r
{\r
- DEBUG ((DEBUG_INFO, "%a: Type:%x Handler: %x\n", __FUNCTION__, ExceptionType, InterruptHandler));\r
+ DEBUG ((DEBUG_INFO, "%a: Type:%x Handler: %x\n", __func__, ExceptionType, InterruptHandler));\r
if (EXCEPT_RISCV_IS_IRQ (ExceptionType)) {\r
if (EXCEPT_RISCV_IRQ_INDEX (ExceptionType) > EXCEPT_RISCV_MAX_IRQS) {\r
return EFI_UNSUPPORTED;\r
DEBUG ((\r
DEBUG_INFO,\r
"%a: Bsp StackBase = 0x%016lx StackSize = 0x%016lx\n",\r
- __FUNCTION__,\r
+ __func__,\r
MemoryHob->AllocDescriptor.MemoryBaseAddress,\r
MemoryHob->AllocDescriptor.MemoryLength\r
));\r
);\r
}\r
\r
- DEBUG ((DEBUG_INFO, "%a() done!\n", __FUNCTION__));\r
+ DEBUG ((DEBUG_INFO, "%a() done!\n", __func__));\r
}\r
\r
/**\r
DEBUG ((\r
DEBUG_INFO,\r
"%a: Required microcode patches have been loaded at 0x%lx, with size 0x%lx.\n",\r
- __FUNCTION__,\r
+ __func__,\r
CpuMpData->MicrocodePatchAddress,\r
CpuMpData->MicrocodePatchRegionSize\r
));\r
DEBUG ((\r
DEBUG_INFO,\r
"%a: 0x%x microcode patches will be loaded into memory, with size 0x%x.\n",\r
- __FUNCTION__,\r
+ __func__,\r
PatchCount,\r
TotalLoadSize\r
));\r
\r
GuidHob = GetFirstGuidHob (&gEdkiiMicrocodePatchHobGuid);\r
if (GuidHob == NULL) {\r
- DEBUG ((DEBUG_INFO, "%a: Microcode patch cache HOB is not found.\n", __FUNCTION__));\r
+ DEBUG ((DEBUG_INFO, "%a: Microcode patch cache HOB is not found.\n", __func__));\r
return FALSE;\r
}\r
\r
DEBUG ((\r
DEBUG_INFO,\r
"%a: MicrocodeBase = 0x%lx, MicrocodeSize = 0x%lx\n",\r
- __FUNCTION__,\r
+ __func__,\r
*Address,\r
*RegionSize\r
));\r
DEBUG ((\r
DEBUG_VERBOSE,\r
"%a: reached FinishedApLimit=%u in %Lu microseconds\n",\r
- __FUNCTION__,\r
+ __func__,\r
FinishedApLimit,\r
DivU64x64Remainder (\r
MultU64x32 (CpuMpData->TotalTime, 1000000),\r
DEBUG ((\r
DEBUG_INFO,\r
"%a: Required microcode patches have been loaded at 0x%lx, with size 0x%lx.\n",\r
- __FUNCTION__,\r
+ __func__,\r
CpuMpData->MicrocodePatchAddress,\r
CpuMpData->MicrocodePatchRegionSize\r
));\r
DEBUG ((\r
DEBUG_ERROR,\r
"ERROR:%a(): HOB(gEfiAcpiVariableGuid=%g) needed by S3 resume doesn't exist!\n",\r
- __FUNCTION__,\r
+ __func__,\r
&gEfiAcpiVariableGuid\r
));\r
CpuDeadLoop ();\r
DEBUG ((\r
DEBUG_INFO,\r
"%a() TempRAM Base: 0x%x, TempRAM Size: 0x%x, BootFirmwareVolume 0x%x\n",\r
- __FUNCTION__,\r
+ __func__,\r
TempRamBase,\r
SizeOfRam,\r
BootFirmwareVolume\r
DEBUG ((\r
DEBUG_INFO,\r
"%a() BFV Base: 0x%x, BFV Size: 0x%x, TempRAM Base: 0x%x, TempRAM Size: 0x%x, PeiTempRamBase: 0x%x, PeiTempRamSize: 0x%x, StackBase: 0x%x, StackSize: 0x%x\n",\r
- __FUNCTION__,\r
+ __func__,\r
SecCoreData.BootFirmwareVolumeBase,\r
SecCoreData.BootFirmwareVolumeSize,\r
SecCoreData.TemporaryRamBase,\r
DEBUG ((\r
DEBUG_INFO,\r
"%a() PeiCoreEntryPoint: 0x%x\n",\r
- __FUNCTION__,\r
+ __func__,\r
PeiCoreEntryPoint\r
));\r
\r
DEBUG ((\r
DEBUG_INFO,\r
"%a() PeiTemporaryRamBase: 0x%x, PeiTemporaryRamSize: 0x%x\n",\r
- __FUNCTION__,\r
+ __func__,\r
SecCoreData->PeiTemporaryRamBase,\r
SecCoreData->PeiTemporaryRamSize\r
));\r
DEBUG ((\r
DEBUG_INFO,\r
"%a() Stack Base: 0x%p, Stack Size: 0x%x\n",\r
- __FUNCTION__,\r
+ __func__,\r
SecCoreData->StackBase,\r
(UINT32)SecCoreData->StackSize\r
));\r
\r
Status = MpServicesUnitTestWhoAmI (LocalContext->MpServices, &BspNumber);\r
UT_ASSERT_NOT_EFI_ERROR (Status);\r
- DEBUG ((DEBUG_INFO, "%a: BspNumber = 0x%x\n", __FUNCTION__, BspNumber));\r
+ DEBUG ((DEBUG_INFO, "%a: BspNumber = 0x%x\n", __func__, BspNumber));\r
\r
Status = MpServicesUnitTestGetNumberOfProcessors (\r
LocalContext->MpServices,\r
DEBUG ((\r
DEBUG_INFO,\r
"%a: NumberOfProcessors = 0x%x, NumberOfEnabledProcessors = 0x%x\n",\r
- __FUNCTION__,\r
+ __func__,\r
NumberOfProcessors,\r
NumberOfEnabledProcessors\r
));\r
LocalContext->DisabledApNumber[IndexOfDisabledAPs] = ProcessorNumber;\r
IndexOfDisabledAPs++;\r
\r
- DEBUG ((DEBUG_INFO, "%a: AP(0x%x) is disabled and temporarily enable it.\n", __FUNCTION__, ProcessorNumber));\r
+ DEBUG ((DEBUG_INFO, "%a: AP(0x%x) is disabled and temporarily enable it.\n", __func__, ProcessorNumber));\r
Status = MpServicesUnitTestEnableDisableAP (\r
LocalContext->MpServices,\r
ProcessorNumber,\r
\r
if (BspNumber != LocalContext->BspNumber) {\r
LocalContext->BspNumber = BspNumber;\r
- DEBUG ((DEBUG_INFO, "%a: New BspNumber = 0x%x\n", __FUNCTION__, BspNumber));\r
+ DEBUG ((DEBUG_INFO, "%a: New BspNumber = 0x%x\n", __func__, BspNumber));\r
}\r
\r
ASSERT (BspNumber == LocalContext->BspNumber);\r
\r
if (NumberOfProcessors != LocalContext->NumberOfProcessors) {\r
LocalContext->NumberOfProcessors = NumberOfProcessors;\r
- DEBUG ((DEBUG_INFO, "%a: New NumberOfProcessors = 0x%x\n", __FUNCTION__, NumberOfProcessors));\r
+ DEBUG ((DEBUG_INFO, "%a: New NumberOfProcessors = 0x%x\n", __func__, NumberOfProcessors));\r
}\r
\r
if (NumberOfEnabledProcessors != LocalContext->NumberOfProcessors) {\r
- DEBUG ((DEBUG_INFO, "%a: New NumberOfEnabledProcessors = 0x%x\n", __FUNCTION__, NumberOfEnabledProcessors));\r
+ DEBUG ((DEBUG_INFO, "%a: New NumberOfEnabledProcessors = 0x%x\n", __func__, NumberOfEnabledProcessors));\r
\r
for (ProcessorNumber = 0; ProcessorNumber < LocalContext->NumberOfProcessors; ProcessorNumber++) {\r
Status = MpServicesUnitTestGetProcessorInfo (\r
ASSERT_EFI_ERROR (Status);\r
\r
if (!(ProcessorInfoBuffer.StatusFlag & PROCESSOR_ENABLED_BIT)) {\r
- DEBUG ((DEBUG_INFO, "%a: AP(0x%x) is disabled unexpectedly and reenable it.\n", __FUNCTION__, ProcessorNumber));\r
+ DEBUG ((DEBUG_INFO, "%a: AP(0x%x) is disabled unexpectedly and reenable it.\n", __func__, ProcessorNumber));\r
Status = MpServicesUnitTestEnableDisableAP (\r
LocalContext->MpServices,\r
ProcessorNumber,\r
DEBUG ((\r
DEBUG_INFO,\r
"%a: Disable AP(0x%x) to restore its state.\n",\r
- __FUNCTION__,\r
+ __func__,\r
LocalContext->DisabledApNumber[IndexOfDisabledAPs]\r
));\r
\r
DEBUG ((\r
DEBUG_INFO,\r
"%a() Stack Base: 0x%x, Stack Size: 0x%x\n",\r
- __FUNCTION__,\r
+ __func__,\r
TempStackTop,\r
sizeof (TempStack)\r
));\r