mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 23:54:02 +02:00
OvmfPkg: Update code to be more C11 compliant by using __func__
__FUNCTION__ is a pre-standard extension that gcc and Visual C++ among others support, while __func__ was standardized in C99. Since it's more standard, replace __FUNCTION__ with __func__ throughout OvmfPkg. Signed-off-by: Rebecca Cran <rebecca@bsdio.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Reviewed-by: Sunil V L <sunilvl@ventanamicro.com>
This commit is contained in:
parent
089013a697
commit
8ba392687b
@ -175,7 +175,7 @@ SaveCondensedWritePointerToS3Context (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: 0x%04x/[0x%08x+%d] := 0x%Lx (%Lu)\n",
|
"%a: 0x%04x/[0x%08x+%d] := 0x%Lx (%Lu)\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
PointerItem,
|
PointerItem,
|
||||||
PointerOffset,
|
PointerOffset,
|
||||||
PointerSize,
|
PointerSize,
|
||||||
@ -225,7 +225,7 @@ AppendFwCfgBootScript (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG ((DEBUG_VERBOSE, "%a: boot script fragment saved\n", __FUNCTION__));
|
DEBUG ((DEBUG_VERBOSE, "%a: boot script fragment saved\n", __func__));
|
||||||
|
|
||||||
ReleaseS3Context (S3Context);
|
ReleaseS3Context (S3Context);
|
||||||
return;
|
return;
|
||||||
|
@ -69,7 +69,7 @@ InstallCloudHvTablesTdx (
|
|||||||
// then we're out of sync with the hypervisor, and cannot continue.
|
// then we're out of sync with the hypervisor, and cannot continue.
|
||||||
//
|
//
|
||||||
if (DsdtTable == NULL) {
|
if (DsdtTable == NULL) {
|
||||||
DEBUG ((DEBUG_INFO, "%a: no DSDT found\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a: no DSDT found\n", __func__));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -201,7 +201,7 @@ InstallCloudHvTables (
|
|||||||
// then we're out of sync with the hypervisor, and cannot continue.
|
// then we're out of sync with the hypervisor, and cannot continue.
|
||||||
//
|
//
|
||||||
if (DsdtTable == NULL) {
|
if (DsdtTable == NULL) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: no DSDT found\n", __FUNCTION__));
|
DEBUG ((DEBUG_ERROR, "%a: no DSDT found\n", __func__));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
CpuDeadLoop ();
|
CpuDeadLoop ();
|
||||||
}
|
}
|
||||||
|
@ -46,11 +46,11 @@ OnRootBridgesConnected (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: root bridges have been connected, installing ACPI tables\n",
|
"%a: root bridges have been connected, installing ACPI tables\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
Status = InstallAcpiTables (FindAcpiTableProtocol ());
|
Status = InstallAcpiTables (FindAcpiTableProtocol ());
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: InstallAcpiTables: %r\n", __FUNCTION__, Status));
|
DEBUG ((DEBUG_ERROR, "%a: InstallAcpiTables: %r\n", __func__, Status));
|
||||||
}
|
}
|
||||||
|
|
||||||
gBS->CloseEvent (Event);
|
gBS->CloseEvent (Event);
|
||||||
@ -76,7 +76,7 @@ AcpiPlatformEntryPoint (
|
|||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: PCI or its enumeration disabled, installing "
|
"%a: PCI or its enumeration disabled, installing "
|
||||||
"ACPI tables\n",
|
"ACPI tables\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
return InstallAcpiTables (FindAcpiTableProtocol ());
|
return InstallAcpiTables (FindAcpiTableProtocol ());
|
||||||
}
|
}
|
||||||
@ -99,7 +99,7 @@ AcpiPlatformEntryPoint (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: waiting for root bridges to be connected, registered callback\n",
|
"%a: waiting for root bridges to be connected, registered callback\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ EnablePciDecoding (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_WARN,
|
DEBUG_WARN,
|
||||||
"%a: LocateHandleBuffer(): %r\n",
|
"%a: LocateHandleBuffer(): %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
return;
|
return;
|
||||||
@ -89,7 +89,7 @@ EnablePciDecoding (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_WARN,
|
DEBUG_WARN,
|
||||||
"%a: AllocatePool(): out of resources\n",
|
"%a: AllocatePool(): out of resources\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
goto FreeHandles;
|
goto FreeHandles;
|
||||||
}
|
}
|
||||||
@ -122,7 +122,7 @@ EnablePciDecoding (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_WARN,
|
DEBUG_WARN,
|
||||||
"%a: EfiPciIoAttributeOperationGet: %r\n",
|
"%a: EfiPciIoAttributeOperationGet: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
goto RestoreAttributes;
|
goto RestoreAttributes;
|
||||||
@ -141,7 +141,7 @@ EnablePciDecoding (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_WARN,
|
DEBUG_WARN,
|
||||||
"%a: EfiPciIoAttributeOperationSupported: %r\n",
|
"%a: EfiPciIoAttributeOperationSupported: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
goto RestoreAttributes;
|
goto RestoreAttributes;
|
||||||
@ -161,7 +161,7 @@ EnablePciDecoding (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_WARN,
|
DEBUG_WARN,
|
||||||
"%a: EfiPciIoAttributeOperationEnable: %r\n",
|
"%a: EfiPciIoAttributeOperationEnable: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
goto RestoreAttributes;
|
goto RestoreAttributes;
|
||||||
|
@ -238,7 +238,7 @@ CollectAllocationsRestrictedTo32Bit (
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (AddPointer->PointeeFile[QEMU_LOADER_FNAME_SIZE - 1] != '\0') {
|
if (AddPointer->PointeeFile[QEMU_LOADER_FNAME_SIZE - 1] != '\0') {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: malformed file name\n", __FUNCTION__));
|
DEBUG ((DEBUG_ERROR, "%a: malformed file name\n", __func__));
|
||||||
Status = EFI_PROTOCOL_ERROR;
|
Status = EFI_PROTOCOL_ERROR;
|
||||||
goto RollBack;
|
goto RollBack;
|
||||||
}
|
}
|
||||||
@ -253,7 +253,7 @@ CollectAllocationsRestrictedTo32Bit (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: restricting blob \"%a\" from 64-bit allocation\n",
|
"%a: restricting blob \"%a\" from 64-bit allocation\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
AddPointer->PointeeFile
|
AddPointer->PointeeFile
|
||||||
));
|
));
|
||||||
break;
|
break;
|
||||||
@ -330,7 +330,7 @@ ProcessCmdAllocate (
|
|||||||
BLOB *Blob;
|
BLOB *Blob;
|
||||||
|
|
||||||
if (Allocate->File[QEMU_LOADER_FNAME_SIZE - 1] != '\0') {
|
if (Allocate->File[QEMU_LOADER_FNAME_SIZE - 1] != '\0') {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: malformed file name\n", __FUNCTION__));
|
DEBUG ((DEBUG_ERROR, "%a: malformed file name\n", __func__));
|
||||||
return EFI_PROTOCOL_ERROR;
|
return EFI_PROTOCOL_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -338,7 +338,7 @@ ProcessCmdAllocate (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: unsupported alignment 0x%x\n",
|
"%a: unsupported alignment 0x%x\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Allocate->Alignment
|
Allocate->Alignment
|
||||||
));
|
));
|
||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
@ -349,7 +349,7 @@ ProcessCmdAllocate (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: QemuFwCfgFindFile(\"%a\"): %r\n",
|
"%a: QemuFwCfgFindFile(\"%a\"): %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Allocate->File,
|
Allocate->File,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
@ -392,7 +392,7 @@ ProcessCmdAllocate (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: duplicated file \"%a\"\n",
|
"%a: duplicated file \"%a\"\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Allocate->File
|
Allocate->File
|
||||||
));
|
));
|
||||||
Status = EFI_PROTOCOL_ERROR;
|
Status = EFI_PROTOCOL_ERROR;
|
||||||
@ -410,7 +410,7 @@ ProcessCmdAllocate (
|
|||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: File=\"%a\" Alignment=0x%x Zone=%d Size=0x%Lx "
|
"%a: File=\"%a\" Alignment=0x%x Zone=%d Size=0x%Lx "
|
||||||
"Address=0x%Lx\n",
|
"Address=0x%Lx\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Allocate->File,
|
Allocate->File,
|
||||||
Allocate->Alignment,
|
Allocate->Alignment,
|
||||||
Allocate->Zone,
|
Allocate->Zone,
|
||||||
@ -477,7 +477,7 @@ ProcessCmdAddPointer (
|
|||||||
if ((AddPointer->PointerFile[QEMU_LOADER_FNAME_SIZE - 1] != '\0') ||
|
if ((AddPointer->PointerFile[QEMU_LOADER_FNAME_SIZE - 1] != '\0') ||
|
||||||
(AddPointer->PointeeFile[QEMU_LOADER_FNAME_SIZE - 1] != '\0'))
|
(AddPointer->PointeeFile[QEMU_LOADER_FNAME_SIZE - 1] != '\0'))
|
||||||
{
|
{
|
||||||
DEBUG ((DEBUG_ERROR, "%a: malformed file name\n", __FUNCTION__));
|
DEBUG ((DEBUG_ERROR, "%a: malformed file name\n", __func__));
|
||||||
return EFI_PROTOCOL_ERROR;
|
return EFI_PROTOCOL_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -487,7 +487,7 @@ ProcessCmdAddPointer (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: invalid blob reference(s) \"%a\" / \"%a\"\n",
|
"%a: invalid blob reference(s) \"%a\" / \"%a\"\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
AddPointer->PointerFile,
|
AddPointer->PointerFile,
|
||||||
AddPointer->PointeeFile
|
AddPointer->PointeeFile
|
||||||
));
|
));
|
||||||
@ -504,7 +504,7 @@ ProcessCmdAddPointer (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: invalid pointer location or size in \"%a\"\n",
|
"%a: invalid pointer location or size in \"%a\"\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
AddPointer->PointerFile
|
AddPointer->PointerFile
|
||||||
));
|
));
|
||||||
return EFI_PROTOCOL_ERROR;
|
return EFI_PROTOCOL_ERROR;
|
||||||
@ -517,7 +517,7 @@ ProcessCmdAddPointer (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: invalid pointer value in \"%a\"\n",
|
"%a: invalid pointer value in \"%a\"\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
AddPointer->PointerFile
|
AddPointer->PointerFile
|
||||||
));
|
));
|
||||||
return EFI_PROTOCOL_ERROR;
|
return EFI_PROTOCOL_ERROR;
|
||||||
@ -537,7 +537,7 @@ ProcessCmdAddPointer (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: relocated pointer value unrepresentable in "
|
"%a: relocated pointer value unrepresentable in "
|
||||||
"\"%a\"\n",
|
"\"%a\"\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
AddPointer->PointerFile
|
AddPointer->PointerFile
|
||||||
));
|
));
|
||||||
return EFI_PROTOCOL_ERROR;
|
return EFI_PROTOCOL_ERROR;
|
||||||
@ -549,7 +549,7 @@ ProcessCmdAddPointer (
|
|||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: PointerFile=\"%a\" PointeeFile=\"%a\" "
|
"%a: PointerFile=\"%a\" PointeeFile=\"%a\" "
|
||||||
"PointerOffset=0x%x PointerSize=%d\n",
|
"PointerOffset=0x%x PointerSize=%d\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
AddPointer->PointerFile,
|
AddPointer->PointerFile,
|
||||||
AddPointer->PointeeFile,
|
AddPointer->PointeeFile,
|
||||||
AddPointer->PointerOffset,
|
AddPointer->PointerOffset,
|
||||||
@ -585,7 +585,7 @@ ProcessCmdAddChecksum (
|
|||||||
BLOB *Blob;
|
BLOB *Blob;
|
||||||
|
|
||||||
if (AddChecksum->File[QEMU_LOADER_FNAME_SIZE - 1] != '\0') {
|
if (AddChecksum->File[QEMU_LOADER_FNAME_SIZE - 1] != '\0') {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: malformed file name\n", __FUNCTION__));
|
DEBUG ((DEBUG_ERROR, "%a: malformed file name\n", __func__));
|
||||||
return EFI_PROTOCOL_ERROR;
|
return EFI_PROTOCOL_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -594,7 +594,7 @@ ProcessCmdAddChecksum (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: invalid blob reference \"%a\"\n",
|
"%a: invalid blob reference \"%a\"\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
AddChecksum->File
|
AddChecksum->File
|
||||||
));
|
));
|
||||||
return EFI_PROTOCOL_ERROR;
|
return EFI_PROTOCOL_ERROR;
|
||||||
@ -608,7 +608,7 @@ ProcessCmdAddChecksum (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: invalid checksum range in \"%a\"\n",
|
"%a: invalid checksum range in \"%a\"\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
AddChecksum->File
|
AddChecksum->File
|
||||||
));
|
));
|
||||||
return EFI_PROTOCOL_ERROR;
|
return EFI_PROTOCOL_ERROR;
|
||||||
@ -622,7 +622,7 @@ ProcessCmdAddChecksum (
|
|||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: File=\"%a\" ResultOffset=0x%x Start=0x%x "
|
"%a: File=\"%a\" ResultOffset=0x%x Start=0x%x "
|
||||||
"Length=0x%x\n",
|
"Length=0x%x\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
AddChecksum->File,
|
AddChecksum->File,
|
||||||
AddChecksum->ResultOffset,
|
AddChecksum->ResultOffset,
|
||||||
AddChecksum->Start,
|
AddChecksum->Start,
|
||||||
@ -680,7 +680,7 @@ ProcessCmdWritePointer (
|
|||||||
if ((WritePointer->PointerFile[QEMU_LOADER_FNAME_SIZE - 1] != '\0') ||
|
if ((WritePointer->PointerFile[QEMU_LOADER_FNAME_SIZE - 1] != '\0') ||
|
||||||
(WritePointer->PointeeFile[QEMU_LOADER_FNAME_SIZE - 1] != '\0'))
|
(WritePointer->PointeeFile[QEMU_LOADER_FNAME_SIZE - 1] != '\0'))
|
||||||
{
|
{
|
||||||
DEBUG ((DEBUG_ERROR, "%a: malformed file name\n", __FUNCTION__));
|
DEBUG ((DEBUG_ERROR, "%a: malformed file name\n", __func__));
|
||||||
return EFI_PROTOCOL_ERROR;
|
return EFI_PROTOCOL_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -694,7 +694,7 @@ ProcessCmdWritePointer (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: invalid fw_cfg file or blob reference \"%a\" / \"%a\"\n",
|
"%a: invalid fw_cfg file or blob reference \"%a\" / \"%a\"\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
WritePointer->PointerFile,
|
WritePointer->PointerFile,
|
||||||
WritePointer->PointeeFile
|
WritePointer->PointeeFile
|
||||||
));
|
));
|
||||||
@ -710,7 +710,7 @@ ProcessCmdWritePointer (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: invalid pointer location or size in \"%a\"\n",
|
"%a: invalid pointer location or size in \"%a\"\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
WritePointer->PointerFile
|
WritePointer->PointerFile
|
||||||
));
|
));
|
||||||
return EFI_PROTOCOL_ERROR;
|
return EFI_PROTOCOL_ERROR;
|
||||||
@ -719,7 +719,7 @@ ProcessCmdWritePointer (
|
|||||||
PointeeBlob = OrderedCollectionUserStruct (PointeeEntry);
|
PointeeBlob = OrderedCollectionUserStruct (PointeeEntry);
|
||||||
PointerValue = WritePointer->PointeeOffset;
|
PointerValue = WritePointer->PointeeOffset;
|
||||||
if (PointerValue >= PointeeBlob->Size) {
|
if (PointerValue >= PointeeBlob->Size) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: invalid PointeeOffset\n", __FUNCTION__));
|
DEBUG ((DEBUG_ERROR, "%a: invalid PointeeOffset\n", __func__));
|
||||||
return EFI_PROTOCOL_ERROR;
|
return EFI_PROTOCOL_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -736,7 +736,7 @@ ProcessCmdWritePointer (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: pointer value unrepresentable in \"%a\"\n",
|
"%a: pointer value unrepresentable in \"%a\"\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
WritePointer->PointerFile
|
WritePointer->PointerFile
|
||||||
));
|
));
|
||||||
return EFI_PROTOCOL_ERROR;
|
return EFI_PROTOCOL_ERROR;
|
||||||
@ -776,7 +776,7 @@ ProcessCmdWritePointer (
|
|||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: PointerFile=\"%a\" PointeeFile=\"%a\" "
|
"%a: PointerFile=\"%a\" PointeeFile=\"%a\" "
|
||||||
"PointerOffset=0x%x PointeeOffset=0x%x PointerSize=%d\n",
|
"PointerOffset=0x%x PointeeOffset=0x%x PointerSize=%d\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
WritePointer->PointerFile,
|
WritePointer->PointerFile,
|
||||||
WritePointer->PointeeFile,
|
WritePointer->PointeeFile,
|
||||||
WritePointer->PointerOffset,
|
WritePointer->PointerOffset,
|
||||||
@ -822,7 +822,7 @@ UndoCmdWritePointer (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: PointerFile=\"%a\" PointerOffset=0x%x PointerSize=%d\n",
|
"%a: PointerFile=\"%a\" PointerOffset=0x%x PointerSize=%d\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
WritePointer->PointerFile,
|
WritePointer->PointerFile,
|
||||||
WritePointer->PointerOffset,
|
WritePointer->PointerOffset,
|
||||||
WritePointer->PointerSize
|
WritePointer->PointerSize
|
||||||
@ -953,7 +953,7 @@ Process2ndPassCmdAddPointer (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: PointerValue=0x%Lx already processed, skipping.\n",
|
"%a: PointerValue=0x%Lx already processed, skipping.\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
PointerValue
|
PointerValue
|
||||||
));
|
));
|
||||||
Status = EFI_SUCCESS;
|
Status = EFI_SUCCESS;
|
||||||
@ -967,7 +967,7 @@ Process2ndPassCmdAddPointer (
|
|||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: checking for ACPI header in \"%a\" at 0x%Lx "
|
"%a: checking for ACPI header in \"%a\" at 0x%Lx "
|
||||||
"(remaining: 0x%Lx): ",
|
"(remaining: 0x%Lx): ",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
AddPointer->PointeeFile,
|
AddPointer->PointeeFile,
|
||||||
PointerValue,
|
PointerValue,
|
||||||
(UINT64)Blob2Remaining
|
(UINT64)Blob2Remaining
|
||||||
@ -1042,7 +1042,7 @@ Process2ndPassCmdAddPointer (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: can't install more than %d tables\n",
|
"%a: can't install more than %d tables\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
INSTALLED_TABLES_MAX
|
INSTALLED_TABLES_MAX
|
||||||
));
|
));
|
||||||
Status = EFI_OUT_OF_RESOURCES;
|
Status = EFI_OUT_OF_RESOURCES;
|
||||||
@ -1059,7 +1059,7 @@ Process2ndPassCmdAddPointer (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: InstallAcpiTable(): %r\n",
|
"%a: InstallAcpiTable(): %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
goto RollbackSeenPointer;
|
goto RollbackSeenPointer;
|
||||||
@ -1128,7 +1128,7 @@ InstallQemuFwCfgTables (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: \"etc/table-loader\" has invalid size 0x%Lx\n",
|
"%a: \"etc/table-loader\" has invalid size 0x%Lx\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(UINT64)FwCfgSize
|
(UINT64)FwCfgSize
|
||||||
));
|
));
|
||||||
return EFI_PROTOCOL_ERROR;
|
return EFI_PROTOCOL_ERROR;
|
||||||
@ -1236,7 +1236,7 @@ InstallQemuFwCfgTables (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: unknown loader command: 0x%x\n",
|
"%a: unknown loader command: 0x%x\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
LoaderEntry->Type
|
LoaderEntry->Type
|
||||||
));
|
));
|
||||||
break;
|
break;
|
||||||
@ -1311,7 +1311,7 @@ InstallQemuFwCfgTables (
|
|||||||
S3Context = NULL;
|
S3Context = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG ((DEBUG_INFO, "%a: installed %d tables\n", __FUNCTION__, Installed));
|
DEBUG ((DEBUG_INFO, "%a: installed %d tables\n", __func__, Installed));
|
||||||
|
|
||||||
UninstallQemuAcpiTableNotifyProtocol:
|
UninstallQemuAcpiTableNotifyProtocol:
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
@ -1380,7 +1380,7 @@ RollbackWritePointersAndFreeTracker:
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: freeing \"%a\"\n",
|
"%a: freeing \"%a\"\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Blob->File
|
Blob->File
|
||||||
));
|
));
|
||||||
gBS->FreePages ((UINTN)Blob->Base, EFI_SIZE_TO_PAGES (Blob->Size));
|
gBS->FreePages ((UINTN)Blob->Base, EFI_SIZE_TO_PAGES (Blob->Size));
|
||||||
|
@ -101,7 +101,7 @@ VerifyBlob (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Verifier called but no hashes table discoverd in MEMFD\n",
|
"%a: Verifier called but no hashes table discoverd in MEMFD\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
return EFI_ACCESS_DENIED;
|
return EFI_ACCESS_DENIED;
|
||||||
}
|
}
|
||||||
@ -111,7 +111,7 @@ VerifyBlob (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Unknown blob name \"%s\"\n",
|
"%a: Unknown blob name \"%s\"\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
BlobName
|
BlobName
|
||||||
));
|
));
|
||||||
return EFI_ACCESS_DENIED;
|
return EFI_ACCESS_DENIED;
|
||||||
@ -134,14 +134,14 @@ VerifyBlob (
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG ((DEBUG_INFO, "%a: Found GUID %g in table\n", __FUNCTION__, Guid));
|
DEBUG ((DEBUG_INFO, "%a: Found GUID %g in table\n", __func__, Guid));
|
||||||
|
|
||||||
EntrySize = Entry->Len - sizeof Entry->Guid - sizeof Entry->Len;
|
EntrySize = Entry->Len - sizeof Entry->Guid - sizeof Entry->Len;
|
||||||
if (EntrySize != SHA256_DIGEST_SIZE) {
|
if (EntrySize != SHA256_DIGEST_SIZE) {
|
||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Hash has the wrong size %d != %d\n",
|
"%a: Hash has the wrong size %d != %d\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
EntrySize,
|
EntrySize,
|
||||||
SHA256_DIGEST_SIZE
|
SHA256_DIGEST_SIZE
|
||||||
));
|
));
|
||||||
@ -159,7 +159,7 @@ VerifyBlob (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: Hash comparison succeeded for \"%s\"\n",
|
"%a: Hash comparison succeeded for \"%s\"\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
BlobName
|
BlobName
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
@ -167,7 +167,7 @@ VerifyBlob (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Hash comparison failed for \"%s\"\n",
|
"%a: Hash comparison failed for \"%s\"\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
BlobName
|
BlobName
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
@ -178,7 +178,7 @@ VerifyBlob (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Hash GUID %g not found in table\n",
|
"%a: Hash GUID %g not found in table\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Guid
|
Guid
|
||||||
));
|
));
|
||||||
return EFI_ACCESS_DENIED;
|
return EFI_ACCESS_DENIED;
|
||||||
@ -218,7 +218,7 @@ BlobVerifierLibSevHashesConstructor (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: Found injected hashes table in secure location\n",
|
"%a: Found injected hashes table in secure location\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
|
|
||||||
mHashesTable = (HASH_TABLE *)Ptr->Data;
|
mHashesTable = (HASH_TABLE *)Ptr->Data;
|
||||||
@ -227,7 +227,7 @@ BlobVerifierLibSevHashesConstructor (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: mHashesTable=0x%p, Size=%u\n",
|
"%a: mHashesTable=0x%p, Size=%u\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
mHashesTable,
|
mHashesTable,
|
||||||
mHashesTableSize
|
mHashesTableSize
|
||||||
));
|
));
|
||||||
|
@ -276,7 +276,7 @@ AmdSevDxeEntryPoint (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: MemEncryptSevClearPageEncMask(): %r\n",
|
"%a: MemEncryptSevClearPageEncMask(): %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
|
@ -41,11 +41,11 @@ OnRootBridgesConnected (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: root bridges have been connected, installing ACPI tables\n",
|
"%a: root bridges have been connected, installing ACPI tables\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
Status = InstallAcpiTables (FindAcpiTableProtocol ());
|
Status = InstallAcpiTables (FindAcpiTableProtocol ());
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: InstallAcpiTables: %r\n", __FUNCTION__, Status));
|
DEBUG ((DEBUG_ERROR, "%a: InstallAcpiTables: %r\n", __func__, Status));
|
||||||
}
|
}
|
||||||
|
|
||||||
gBS->CloseEvent (Event);
|
gBS->CloseEvent (Event);
|
||||||
@ -71,7 +71,7 @@ AcpiPlatformEntryPoint (
|
|||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: PCI or its enumeration disabled, installing "
|
"%a: PCI or its enumeration disabled, installing "
|
||||||
"ACPI tables\n",
|
"ACPI tables\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
return InstallAcpiTables (FindAcpiTableProtocol ());
|
return InstallAcpiTables (FindAcpiTableProtocol ());
|
||||||
}
|
}
|
||||||
@ -94,7 +94,7 @@ AcpiPlatformEntryPoint (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: waiting for root bridges to be connected, registered callback\n",
|
"%a: waiting for root bridges to be connected, registered callback\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ EnablePciDecoding (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_WARN,
|
DEBUG_WARN,
|
||||||
"%a: LocateHandleBuffer(): %r\n",
|
"%a: LocateHandleBuffer(): %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
return;
|
return;
|
||||||
@ -87,7 +87,7 @@ EnablePciDecoding (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_WARN,
|
DEBUG_WARN,
|
||||||
"%a: AllocatePool(): out of resources\n",
|
"%a: AllocatePool(): out of resources\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
goto FreeHandles;
|
goto FreeHandles;
|
||||||
}
|
}
|
||||||
@ -120,7 +120,7 @@ EnablePciDecoding (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_WARN,
|
DEBUG_WARN,
|
||||||
"%a: EfiPciIoAttributeOperationGet: %r\n",
|
"%a: EfiPciIoAttributeOperationGet: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
goto RestoreAttributes;
|
goto RestoreAttributes;
|
||||||
@ -139,7 +139,7 @@ EnablePciDecoding (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_WARN,
|
DEBUG_WARN,
|
||||||
"%a: EfiPciIoAttributeOperationSupported: %r\n",
|
"%a: EfiPciIoAttributeOperationSupported: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
goto RestoreAttributes;
|
goto RestoreAttributes;
|
||||||
@ -159,7 +159,7 @@ EnablePciDecoding (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_WARN,
|
DEBUG_WARN,
|
||||||
"%a: EfiPciIoAttributeOperationEnable: %r\n",
|
"%a: EfiPciIoAttributeOperationEnable: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
goto RestoreAttributes;
|
goto RestoreAttributes;
|
||||||
|
@ -147,7 +147,7 @@ InstallVbeShim (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: Video BIOS handler found at %04x:%04x\n",
|
"%a: Video BIOS handler found at %04x:%04x\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Int0x10->Segment,
|
Int0x10->Segment,
|
||||||
Int0x10->Offset
|
Int0x10->Offset
|
||||||
));
|
));
|
||||||
@ -161,7 +161,7 @@ InstallVbeShim (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: failed to allocate page at zero: %r\n",
|
"%a: failed to allocate page at zero: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
@ -271,7 +271,7 @@ InstallVbeShim (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: VBE shim installed to %x:%x\n",
|
"%a: VBE shim installed to %x:%x\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Int0x10->Segment,
|
Int0x10->Segment,
|
||||||
Int0x10->Offset
|
Int0x10->Offset
|
||||||
));
|
));
|
||||||
|
@ -59,7 +59,7 @@ ClearCacheOnMpServicesAvailable (
|
|||||||
EFI_PEI_MP_SERVICES_PPI *MpServices;
|
EFI_PEI_MP_SERVICES_PPI *MpServices;
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
|
||||||
DEBUG ((DEBUG_INFO, "%a: %a\n", gEfiCallerBaseName, __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a: %a\n", gEfiCallerBaseName, __func__));
|
||||||
|
|
||||||
//
|
//
|
||||||
// Clear cache on all the APs in parallel.
|
// Clear cache on all the APs in parallel.
|
||||||
@ -74,7 +74,7 @@ ClearCacheOnMpServicesAvailable (
|
|||||||
NULL // ProcedureArgument
|
NULL // ProcedureArgument
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status) && (Status != EFI_NOT_STARTED)) {
|
if (EFI_ERROR (Status) && (Status != EFI_NOT_STARTED)) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: StartupAllAps(): %r\n", __FUNCTION__, Status));
|
DEBUG ((DEBUG_ERROR, "%a: StartupAllAps(): %r\n", __func__, Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -108,7 +108,7 @@ InstallClearCacheCallback (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: failed to set up MP Services callback: %r\n",
|
"%a: failed to set up MP Services callback: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
@ -58,7 +58,7 @@ Q35TsegMbytesInitialization (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: no TSEG (SMRAM) on host bridge DID=0x%04x; "
|
"%a: no TSEG (SMRAM) on host bridge DID=0x%04x; "
|
||||||
"only DID=0x%04x (Q35) is supported\n",
|
"only DID=0x%04x (Q35) is supported\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
mHostBridgeDevId,
|
mHostBridgeDevId,
|
||||||
INTEL_Q35_MCH_DEVICE_ID
|
INTEL_Q35_MCH_DEVICE_ID
|
||||||
));
|
));
|
||||||
@ -92,7 +92,7 @@ Q35TsegMbytesInitialization (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: QEMU offers an extended TSEG (%d MB)\n",
|
"%a: QEMU offers an extended TSEG (%d MB)\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
ExtendedTsegMbytes
|
ExtendedTsegMbytes
|
||||||
));
|
));
|
||||||
PcdStatus = PcdSet16S (PcdQ35TsegMbytes, ExtendedTsegMbytes);
|
PcdStatus = PcdSet16S (PcdQ35TsegMbytes, ExtendedTsegMbytes);
|
||||||
@ -185,7 +185,7 @@ GetFirstNonAddress (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: disabling 64-bit PCI host aperture\n",
|
"%a: disabling 64-bit PCI host aperture\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
PcdStatus = PcdSet64S (PcdPciMmio64Size, 0);
|
PcdStatus = PcdSet64S (PcdPciMmio64Size, 0);
|
||||||
ASSERT_RETURN_ERROR (PcdStatus);
|
ASSERT_RETURN_ERROR (PcdStatus);
|
||||||
@ -228,7 +228,7 @@ GetFirstNonAddress (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: Pci64Base=0x%Lx Pci64Size=0x%Lx\n",
|
"%a: Pci64Base=0x%Lx Pci64Size=0x%Lx\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Pci64Base,
|
Pci64Base,
|
||||||
Pci64Size
|
Pci64Size
|
||||||
));
|
));
|
||||||
@ -392,7 +392,7 @@ PublishPeiMemory (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: mPhysMemAddressWidth=%d PeiMemoryCap=%u KB\n",
|
"%a: mPhysMemAddressWidth=%d PeiMemoryCap=%u KB\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
mPhysMemAddressWidth,
|
mPhysMemAddressWidth,
|
||||||
PeiMemoryCap >> 10
|
PeiMemoryCap >> 10
|
||||||
));
|
));
|
||||||
@ -441,7 +441,7 @@ QemuInitializeRam (
|
|||||||
MTRR_SETTINGS MtrrSettings;
|
MTRR_SETTINGS MtrrSettings;
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
|
||||||
DEBUG ((DEBUG_INFO, "%a called\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a called\n", __func__));
|
||||||
|
|
||||||
//
|
//
|
||||||
// Determine total memory size available
|
// Determine total memory size available
|
||||||
|
@ -373,7 +373,7 @@ MiscInitialization (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Unknown Host Bridge Device ID: 0x%04x\n",
|
"%a: Unknown Host Bridge Device ID: 0x%04x\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
mHostBridgeDevId
|
mHostBridgeDevId
|
||||||
));
|
));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
@ -501,17 +501,17 @@ S3Verification (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: S3Resume2Pei doesn't support X64 PEI + SMM yet.\n",
|
"%a: S3Resume2Pei doesn't support X64 PEI + SMM yet.\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Please disable S3 on the QEMU command line (see the README),\n",
|
"%a: Please disable S3 on the QEMU command line (see the README),\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: or build OVMF with \"OvmfPkgIa32X64.dsc\".\n",
|
"%a: or build OVMF with \"OvmfPkgIa32X64.dsc\".\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
CpuDeadLoop ();
|
CpuDeadLoop ();
|
||||||
@ -558,7 +558,7 @@ MaxCpuCountInitialization (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: QEMU reports %d processor(s)\n",
|
"%a: QEMU reports %d processor(s)\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
ProcessorCount
|
ProcessorCount
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
@ -135,7 +135,7 @@ ProcessHotAddedCpus (
|
|||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: APIC ID " FMT_APIC_ID " was hot-plugged "
|
"%a: APIC ID " FMT_APIC_ID " was hot-plugged "
|
||||||
"before; ignoring it\n",
|
"before; ignoring it\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
NewApicId
|
NewApicId
|
||||||
));
|
));
|
||||||
PluggedIdx++;
|
PluggedIdx++;
|
||||||
@ -155,7 +155,7 @@ ProcessHotAddedCpus (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: no room for APIC ID " FMT_APIC_ID "\n",
|
"%a: no room for APIC ID " FMT_APIC_ID "\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
NewApicId
|
NewApicId
|
||||||
));
|
));
|
||||||
return EFI_OUT_OF_RESOURCES;
|
return EFI_OUT_OF_RESOURCES;
|
||||||
@ -190,7 +190,7 @@ ProcessHotAddedCpus (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: AddProcessor(" FMT_APIC_ID "): %r\n",
|
"%a: AddProcessor(" FMT_APIC_ID "): %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
NewApicId,
|
NewApicId,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
@ -201,7 +201,7 @@ ProcessHotAddedCpus (
|
|||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: hot-added APIC ID " FMT_APIC_ID ", SMBASE 0x%Lx, "
|
"%a: hot-added APIC ID " FMT_APIC_ID ", SMBASE 0x%Lx, "
|
||||||
"EFI_SMM_CPU_SERVICE_PROTOCOL assigned number %Lu\n",
|
"EFI_SMM_CPU_SERVICE_PROTOCOL assigned number %Lu\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
NewApicId,
|
NewApicId,
|
||||||
(UINT64)mCpuHotPlugData->SmBase[NewSlot],
|
(UINT64)mCpuHotPlugData->SmBase[NewSlot],
|
||||||
(UINT64)NewProcessorNumberByProtocol
|
(UINT64)NewProcessorNumberByProtocol
|
||||||
@ -310,7 +310,7 @@ EjectCpu (
|
|||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: Unplugged ProcessorNum %u, "
|
"%a: Unplugged ProcessorNum %u, "
|
||||||
"QemuSelector %Lu\n",
|
"QemuSelector %Lu\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Idx,
|
Idx,
|
||||||
QemuSelector
|
QemuSelector
|
||||||
));
|
));
|
||||||
@ -454,7 +454,7 @@ UnplugCpus (
|
|||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: did not find APIC ID " FMT_APIC_ID
|
"%a: did not find APIC ID " FMT_APIC_ID
|
||||||
" to unplug\n",
|
" to unplug\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
RemoveApicId
|
RemoveApicId
|
||||||
));
|
));
|
||||||
ToUnplugIdx++;
|
ToUnplugIdx++;
|
||||||
@ -469,7 +469,7 @@ UnplugCpus (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: RemoveProcessor(" FMT_APIC_ID "): %r\n",
|
"%a: RemoveProcessor(" FMT_APIC_ID "): %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
RemoveApicId,
|
RemoveApicId,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
@ -493,7 +493,7 @@ UnplugCpus (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: ProcessorNum %Lu maps to QemuSelector %Lu, "
|
"%a: ProcessorNum %Lu maps to QemuSelector %Lu, "
|
||||||
"cannot also map to %u\n",
|
"cannot also map to %u\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(UINT64)ProcessorNum,
|
(UINT64)ProcessorNum,
|
||||||
mCpuHotEjectData->QemuSelectorMap[ProcessorNum],
|
mCpuHotEjectData->QemuSelectorMap[ProcessorNum],
|
||||||
QemuSelector
|
QemuSelector
|
||||||
@ -511,7 +511,7 @@ UnplugCpus (
|
|||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: Started hot-unplug on ProcessorNum %Lu, APIC ID "
|
"%a: Started hot-unplug on ProcessorNum %Lu, APIC ID "
|
||||||
FMT_APIC_ID ", QemuSelector %u\n",
|
FMT_APIC_ID ", QemuSelector %u\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(UINT64)ProcessorNum,
|
(UINT64)ProcessorNum,
|
||||||
RemoveApicId,
|
RemoveApicId,
|
||||||
QemuSelector
|
QemuSelector
|
||||||
@ -635,7 +635,7 @@ CpuHotplugMmi (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: failed to read ICH9_APM_CNT: %r\n",
|
"%a: failed to read ICH9_APM_CNT: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
//
|
//
|
||||||
@ -736,7 +736,7 @@ CpuHotplugEntry (
|
|||||||
(VOID **)&mMmCpuIo
|
(VOID **)&mMmCpuIo
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: locate MmCpuIo: %r\n", __FUNCTION__, Status));
|
DEBUG ((DEBUG_ERROR, "%a: locate MmCpuIo: %r\n", __func__, Status));
|
||||||
goto Fatal;
|
goto Fatal;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -749,7 +749,7 @@ CpuHotplugEntry (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: locate MmCpuService: %r\n",
|
"%a: locate MmCpuService: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
goto Fatal;
|
goto Fatal;
|
||||||
@ -767,7 +767,7 @@ CpuHotplugEntry (
|
|||||||
|
|
||||||
if (mCpuHotPlugData == NULL) {
|
if (mCpuHotPlugData == NULL) {
|
||||||
Status = EFI_NOT_FOUND;
|
Status = EFI_NOT_FOUND;
|
||||||
DEBUG ((DEBUG_ERROR, "%a: CPU_HOT_PLUG_DATA: %r\n", __FUNCTION__, Status));
|
DEBUG ((DEBUG_ERROR, "%a: CPU_HOT_PLUG_DATA: %r\n", __func__, Status));
|
||||||
goto Fatal;
|
goto Fatal;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -787,7 +787,7 @@ CpuHotplugEntry (
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: CPU_HOT_EJECT_DATA: %r\n", __FUNCTION__, Status));
|
DEBUG ((DEBUG_ERROR, "%a: CPU_HOT_EJECT_DATA: %r\n", __func__, Status));
|
||||||
goto Fatal;
|
goto Fatal;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -799,7 +799,7 @@ CpuHotplugEntry (
|
|||||||
RETURN_ERROR (SafeUintnMult (sizeof (UINT32), Len, &SizeSel)))
|
RETURN_ERROR (SafeUintnMult (sizeof (UINT32), Len, &SizeSel)))
|
||||||
{
|
{
|
||||||
Status = EFI_ABORTED;
|
Status = EFI_ABORTED;
|
||||||
DEBUG ((DEBUG_ERROR, "%a: invalid CPU_HOT_PLUG_DATA\n", __FUNCTION__));
|
DEBUG ((DEBUG_ERROR, "%a: invalid CPU_HOT_PLUG_DATA\n", __func__));
|
||||||
goto Fatal;
|
goto Fatal;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -809,7 +809,7 @@ CpuHotplugEntry (
|
|||||||
(VOID **)&mPluggedApicIds
|
(VOID **)&mPluggedApicIds
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: MmAllocatePool(): %r\n", __FUNCTION__, Status));
|
DEBUG ((DEBUG_ERROR, "%a: MmAllocatePool(): %r\n", __func__, Status));
|
||||||
goto Fatal;
|
goto Fatal;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -819,7 +819,7 @@ CpuHotplugEntry (
|
|||||||
(VOID **)&mToUnplugApicIds
|
(VOID **)&mToUnplugApicIds
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: MmAllocatePool(): %r\n", __FUNCTION__, Status));
|
DEBUG ((DEBUG_ERROR, "%a: MmAllocatePool(): %r\n", __func__, Status));
|
||||||
goto ReleasePluggedApicIds;
|
goto ReleasePluggedApicIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -829,7 +829,7 @@ CpuHotplugEntry (
|
|||||||
(VOID **)&mToUnplugSelectors
|
(VOID **)&mToUnplugSelectors
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: MmAllocatePool(): %r\n", __FUNCTION__, Status));
|
DEBUG ((DEBUG_ERROR, "%a: MmAllocatePool(): %r\n", __func__, Status));
|
||||||
goto ReleaseToUnplugApicIds;
|
goto ReleaseToUnplugApicIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -874,7 +874,7 @@ CpuHotplugEntry (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: modern CPU hotplug interface: %r\n",
|
"%a: modern CPU hotplug interface: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
goto ReleasePostSmmPen;
|
goto ReleasePostSmmPen;
|
||||||
@ -892,7 +892,7 @@ CpuHotplugEntry (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: MmiHandlerRegister(): %r\n",
|
"%a: MmiHandlerRegister(): %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
goto ReleasePostSmmPen;
|
goto ReleasePostSmmPen;
|
||||||
|
@ -36,7 +36,7 @@ QemuCpuhpReadCommandData2 (
|
|||||||
&CommandData2
|
&CommandData2
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: %r\n", __FUNCTION__, Status));
|
DEBUG ((DEBUG_ERROR, "%a: %r\n", __func__, Status));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
CpuDeadLoop ();
|
CpuDeadLoop ();
|
||||||
}
|
}
|
||||||
@ -61,7 +61,7 @@ QemuCpuhpReadCpuStatus (
|
|||||||
&CpuStatus
|
&CpuStatus
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: %r\n", __FUNCTION__, Status));
|
DEBUG ((DEBUG_ERROR, "%a: %r\n", __func__, Status));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
CpuDeadLoop ();
|
CpuDeadLoop ();
|
||||||
}
|
}
|
||||||
@ -86,7 +86,7 @@ QemuCpuhpReadCommandData (
|
|||||||
&CommandData
|
&CommandData
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: %r\n", __FUNCTION__, Status));
|
DEBUG ((DEBUG_ERROR, "%a: %r\n", __func__, Status));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
CpuDeadLoop ();
|
CpuDeadLoop ();
|
||||||
}
|
}
|
||||||
@ -110,7 +110,7 @@ QemuCpuhpWriteCpuSelector (
|
|||||||
&Selector
|
&Selector
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: %r\n", __FUNCTION__, Status));
|
DEBUG ((DEBUG_ERROR, "%a: %r\n", __func__, Status));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
CpuDeadLoop ();
|
CpuDeadLoop ();
|
||||||
}
|
}
|
||||||
@ -132,7 +132,7 @@ QemuCpuhpWriteCpuStatus (
|
|||||||
&CpuStatus
|
&CpuStatus
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: %r\n", __FUNCTION__, Status));
|
DEBUG ((DEBUG_ERROR, "%a: %r\n", __func__, Status));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
CpuDeadLoop ();
|
CpuDeadLoop ();
|
||||||
}
|
}
|
||||||
@ -154,7 +154,7 @@ QemuCpuhpWriteCommand (
|
|||||||
&Command
|
&Command
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: %r\n", __FUNCTION__, Status));
|
DEBUG ((DEBUG_ERROR, "%a: %r\n", __func__, Status));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
CpuDeadLoop ();
|
CpuDeadLoop ();
|
||||||
}
|
}
|
||||||
@ -266,7 +266,7 @@ QemuCpuhpCollectApicIds (
|
|||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: CurrentSelector=%u PendingSelector=%u: "
|
"%a: CurrentSelector=%u PendingSelector=%u: "
|
||||||
"wrap-around\n",
|
"wrap-around\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
CurrentSelector,
|
CurrentSelector,
|
||||||
PendingSelector
|
PendingSelector
|
||||||
));
|
));
|
||||||
@ -291,7 +291,7 @@ QemuCpuhpCollectApicIds (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: CurrentSelector=%u CpuStatus=0x%x: "
|
"%a: CurrentSelector=%u CpuStatus=0x%x: "
|
||||||
"inconsistent CPU status\n",
|
"inconsistent CPU status\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
CurrentSelector,
|
CurrentSelector,
|
||||||
CpuStatus
|
CpuStatus
|
||||||
));
|
));
|
||||||
@ -301,7 +301,7 @@ QemuCpuhpCollectApicIds (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: CurrentSelector=%u: insert\n",
|
"%a: CurrentSelector=%u: insert\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
CurrentSelector
|
CurrentSelector
|
||||||
));
|
));
|
||||||
|
|
||||||
@ -317,7 +317,7 @@ QemuCpuhpCollectApicIds (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: CurrentSelector=%u CpuStatus=0x%x: "
|
"%a: CurrentSelector=%u CpuStatus=0x%x: "
|
||||||
"inconsistent CPU status\n",
|
"inconsistent CPU status\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
CurrentSelector,
|
CurrentSelector,
|
||||||
CpuStatus
|
CpuStatus
|
||||||
));
|
));
|
||||||
@ -327,7 +327,7 @@ QemuCpuhpCollectApicIds (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: CurrentSelector=%u: fw_remove\n",
|
"%a: CurrentSelector=%u: fw_remove\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
CurrentSelector
|
CurrentSelector
|
||||||
));
|
));
|
||||||
|
|
||||||
@ -341,7 +341,7 @@ QemuCpuhpCollectApicIds (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: CurrentSelector=%u: remove (ignored)\n",
|
"%a: CurrentSelector=%u: remove (ignored)\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
CurrentSelector
|
CurrentSelector
|
||||||
));
|
));
|
||||||
|
|
||||||
@ -352,7 +352,7 @@ QemuCpuhpCollectApicIds (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: CurrentSelector=%u: no event\n",
|
"%a: CurrentSelector=%u: no event\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
CurrentSelector
|
CurrentSelector
|
||||||
));
|
));
|
||||||
break;
|
break;
|
||||||
@ -368,7 +368,7 @@ QemuCpuhpCollectApicIds (
|
|||||||
// For unplug events, also save the CurrentSelector.
|
// For unplug events, also save the CurrentSelector.
|
||||||
//
|
//
|
||||||
if (*ExtendCount == ApicIdCount) {
|
if (*ExtendCount == ApicIdCount) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: APIC ID array too small\n", __FUNCTION__));
|
DEBUG ((DEBUG_ERROR, "%a: APIC ID array too small\n", __func__));
|
||||||
return EFI_BUFFER_TOO_SMALL;
|
return EFI_BUFFER_TOO_SMALL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -377,7 +377,7 @@ QemuCpuhpCollectApicIds (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: ApicId=" FMT_APIC_ID "\n",
|
"%a: ApicId=" FMT_APIC_ID "\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
NewApicId
|
NewApicId
|
||||||
));
|
));
|
||||||
if (ExtendSels != NULL) {
|
if (ExtendSels != NULL) {
|
||||||
@ -399,7 +399,7 @@ QemuCpuhpCollectApicIds (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: PluggedCount=%u ToUnplugCount=%u\n",
|
"%a: PluggedCount=%u ToUnplugCount=%u\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
*PluggedCount,
|
*PluggedCount,
|
||||||
*ToUnplugCount
|
*ToUnplugCount
|
||||||
));
|
));
|
||||||
|
@ -62,7 +62,7 @@ SmbaseAllocatePostSmmPen (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: mPostSmmPenSize=%u: %r\n",
|
"%a: mPostSmmPenSize=%u: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
mPostSmmPenSize,
|
mPostSmmPenSize,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
@ -77,11 +77,11 @@ SmbaseAllocatePostSmmPen (
|
|||||||
&Address
|
&Address
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: AllocatePages(): %r\n", __FUNCTION__, Status));
|
DEBUG ((DEBUG_ERROR, "%a: AllocatePages(): %r\n", __func__, Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG ((DEBUG_INFO, "%a: Post-SMM Pen at 0x%Lx\n", __FUNCTION__, Address));
|
DEBUG ((DEBUG_INFO, "%a: Post-SMM Pen at 0x%Lx\n", __func__, Address));
|
||||||
*PenAddress = (UINT32)Address;
|
*PenAddress = (UINT32)Address;
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
@ -211,7 +211,7 @@ SmbaseRelocate (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: ApicId=" FMT_APIC_ID " Smbase=0x%Lx: %r\n",
|
"%a: ApicId=" FMT_APIC_ID " Smbase=0x%Lx: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
ApicId,
|
ApicId,
|
||||||
(UINT64)Smbase,
|
(UINT64)Smbase,
|
||||||
Status
|
Status
|
||||||
@ -289,7 +289,7 @@ SmbaseRelocate (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: ApicId=" FMT_APIC_ID " ApicIdGate=0x%Lx: %r\n",
|
"%a: ApicId=" FMT_APIC_ID " ApicIdGate=0x%Lx: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
ApicId,
|
ApicId,
|
||||||
ExchangeResult,
|
ExchangeResult,
|
||||||
Status
|
Status
|
||||||
|
@ -127,7 +127,7 @@ CpuS3DataOnEndOfDxe (
|
|||||||
);
|
);
|
||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
|
|
||||||
DEBUG ((DEBUG_VERBOSE, "%a\n", __FUNCTION__));
|
DEBUG ((DEBUG_VERBOSE, "%a\n", __func__));
|
||||||
MtrrGetAllMtrrs (&AcpiCpuDataEx->MtrrTable);
|
MtrrGetAllMtrrs (&AcpiCpuDataEx->MtrrTable);
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -190,7 +190,7 @@ LegacyInterruptInstall (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Unknown Host Bridge Device ID: 0x%04x\n",
|
"%a: Unknown Host Bridge Device ID: 0x%04x\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
HostBridgeDevId
|
HostBridgeDevId
|
||||||
));
|
));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
|
@ -484,7 +484,7 @@ LegacyRegionInit (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Unknown Host Bridge Device ID: 0x%04x\n",
|
"%a: Unknown Host Bridge Device ID: 0x%04x\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
HostBridgeDevId
|
HostBridgeDevId
|
||||||
));
|
));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
|
@ -393,7 +393,7 @@ Out:
|
|||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
AsciiPrint (
|
AsciiPrint (
|
||||||
"error: %a(\"%s\", %g): %r\n",
|
"error: %a(\"%s\", %g): %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
VariableName,
|
VariableName,
|
||||||
VendorGuid,
|
VendorGuid,
|
||||||
Status
|
Status
|
||||||
|
@ -61,7 +61,7 @@ MapGcdMmioSpace (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: failed to add GCD memory space for region [0x%Lx+0x%Lx)\n",
|
"%a: failed to add GCD memory space for region [0x%Lx+0x%Lx)\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Base,
|
Base,
|
||||||
Size
|
Size
|
||||||
));
|
));
|
||||||
@ -73,7 +73,7 @@ MapGcdMmioSpace (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: failed to set memory space attributes for region [0x%Lx+0x%Lx)\n",
|
"%a: failed to set memory space attributes for region [0x%Lx+0x%Lx)\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Base,
|
Base,
|
||||||
Size
|
Size
|
||||||
));
|
));
|
||||||
@ -143,7 +143,7 @@ ProcessPciHost (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: No 'pci-host-ecam-generic' compatible DT node found\n",
|
"%a: No 'pci-host-ecam-generic' compatible DT node found\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
return EFI_NOT_FOUND;
|
return EFI_NOT_FOUND;
|
||||||
}
|
}
|
||||||
@ -169,7 +169,7 @@ ProcessPciHost (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: 'reg' property not found or invalid\n",
|
"%a: 'reg' property not found or invalid\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
return EFI_PROTOCOL_ERROR;
|
return EFI_PROTOCOL_ERROR;
|
||||||
}
|
}
|
||||||
@ -194,7 +194,7 @@ ProcessPciHost (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: 'bus-range' not found or invalid\n",
|
"%a: 'bus-range' not found or invalid\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
return EFI_PROTOCOL_ERROR;
|
return EFI_PROTOCOL_ERROR;
|
||||||
}
|
}
|
||||||
@ -212,7 +212,7 @@ ProcessPciHost (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: invalid 'bus-range' and/or 'reg'\n",
|
"%a: invalid 'bus-range' and/or 'reg'\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
return EFI_PROTOCOL_ERROR;
|
return EFI_PROTOCOL_ERROR;
|
||||||
}
|
}
|
||||||
@ -224,7 +224,7 @@ ProcessPciHost (
|
|||||||
if (EFI_ERROR (Status) || (Len == 0) ||
|
if (EFI_ERROR (Status) || (Len == 0) ||
|
||||||
(Len % sizeof (DTB_PCI_HOST_RANGE_RECORD) != 0))
|
(Len % sizeof (DTB_PCI_HOST_RANGE_RECORD) != 0))
|
||||||
{
|
{
|
||||||
DEBUG ((DEBUG_ERROR, "%a: 'ranges' not found or invalid\n", __FUNCTION__));
|
DEBUG ((DEBUG_ERROR, "%a: 'ranges' not found or invalid\n", __func__));
|
||||||
return EFI_PROTOCOL_ERROR;
|
return EFI_PROTOCOL_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -251,7 +251,7 @@ ProcessPciHost (
|
|||||||
if ((*Mmio32Base > MAX_UINT32) || (*Mmio32Size > MAX_UINT32) ||
|
if ((*Mmio32Base > MAX_UINT32) || (*Mmio32Size > MAX_UINT32) ||
|
||||||
(*Mmio32Base + *Mmio32Size > SIZE_4GB))
|
(*Mmio32Base + *Mmio32Size > SIZE_4GB))
|
||||||
{
|
{
|
||||||
DEBUG ((DEBUG_ERROR, "%a: MMIO32 space invalid\n", __FUNCTION__));
|
DEBUG ((DEBUG_ERROR, "%a: MMIO32 space invalid\n", __func__));
|
||||||
return EFI_PROTOCOL_ERROR;
|
return EFI_PROTOCOL_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -262,7 +262,7 @@ ProcessPciHost (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: unsupported nonzero MMIO32 translation "
|
"%a: unsupported nonzero MMIO32 translation "
|
||||||
"0x%Lx\n",
|
"0x%Lx\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Mmio32Translation
|
Mmio32Translation
|
||||||
));
|
));
|
||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
@ -282,7 +282,7 @@ ProcessPciHost (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: unsupported nonzero MMIO64 translation "
|
"%a: unsupported nonzero MMIO64 translation "
|
||||||
"0x%Lx\n",
|
"0x%Lx\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Mmio64Translation
|
Mmio64Translation
|
||||||
));
|
));
|
||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
@ -293,7 +293,7 @@ ProcessPciHost (
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (*Mmio32Size == 0) {
|
if (*Mmio32Size == 0) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: MMIO32 space empty\n", __FUNCTION__));
|
DEBUG ((DEBUG_ERROR, "%a: MMIO32 space empty\n", __func__));
|
||||||
return EFI_PROTOCOL_ERROR;
|
return EFI_PROTOCOL_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -307,7 +307,7 @@ ProcessPciHost (
|
|||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: Config[0x%Lx+0x%Lx) Bus[0x%x..0x%x] "
|
"%a: Config[0x%Lx+0x%Lx) Bus[0x%x..0x%x] "
|
||||||
"Io[0x%Lx+0x%Lx)@0x%Lx Mem32[0x%Lx+0x%Lx)@0x0 Mem64[0x%Lx+0x%Lx)@0x0\n",
|
"Io[0x%Lx+0x%Lx)@0x%Lx Mem32[0x%Lx+0x%Lx)@0x0 Mem64[0x%Lx+0x%Lx)@0x0\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
ConfigBase,
|
ConfigBase,
|
||||||
ConfigSize,
|
ConfigSize,
|
||||||
*BusMin,
|
*BusMin,
|
||||||
@ -370,7 +370,7 @@ PciHostBridgeGetRootBridges (
|
|||||||
PCI_ROOT_BRIDGE_APERTURE PMemAbove4G;
|
PCI_ROOT_BRIDGE_APERTURE PMemAbove4G;
|
||||||
|
|
||||||
if (PcdGet64 (PcdPciExpressBaseAddress) == 0) {
|
if (PcdGet64 (PcdPciExpressBaseAddress) == 0) {
|
||||||
DEBUG ((DEBUG_INFO, "%a: PCI host bridge not present\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a: PCI host bridge not present\n", __func__));
|
||||||
|
|
||||||
*Count = 0;
|
*Count = 0;
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -390,7 +390,7 @@ PciHostBridgeGetRootBridges (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: failed to discover PCI host bridge: %r\n",
|
"%a: failed to discover PCI host bridge: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
*Count = 0;
|
*Count = 0;
|
||||||
|
@ -58,7 +58,7 @@ GetPciIoTranslation (
|
|||||||
if (EFI_ERROR (Status) || (Len == 0) ||
|
if (EFI_ERROR (Status) || (Len == 0) ||
|
||||||
(Len % sizeof (DTB_PCI_HOST_RANGE_RECORD) != 0))
|
(Len % sizeof (DTB_PCI_HOST_RANGE_RECORD) != 0))
|
||||||
{
|
{
|
||||||
DEBUG ((DEBUG_ERROR, "%a: 'ranges' not found or invalid\n", __FUNCTION__));
|
DEBUG ((DEBUG_ERROR, "%a: 'ranges' not found or invalid\n", __func__));
|
||||||
return RETURN_PROTOCOL_ERROR;
|
return RETURN_PROTOCOL_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -152,7 +152,7 @@ FdtPciPcdProducerLibConstructor (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_WARN,
|
DEBUG_WARN,
|
||||||
"%a: 'pci-host-ecam-generic' device encountered with no I/O range\n",
|
"%a: 'pci-host-ecam-generic' device encountered with no I/O range\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -93,7 +93,7 @@ InitializeHighMemDxe (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_WARN,
|
DEBUG_WARN,
|
||||||
"%a: Region 0x%lx - 0x%lx not found in the GCD memory space map\n",
|
"%a: Region 0x%lx - 0x%lx not found in the GCD memory space map\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
CurBase,
|
CurBase,
|
||||||
CurBase + CurSize - 1
|
CurBase + CurSize - 1
|
||||||
));
|
));
|
||||||
@ -112,7 +112,7 @@ InitializeHighMemDxe (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Failed to add System RAM @ 0x%lx - 0x%lx (%r)\n",
|
"%a: Failed to add System RAM @ 0x%lx - 0x%lx (%r)\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
CurBase,
|
CurBase,
|
||||||
CurBase + CurSize - 1,
|
CurBase + CurSize - 1,
|
||||||
Status
|
Status
|
||||||
@ -129,7 +129,7 @@ InitializeHighMemDxe (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_WARN,
|
DEBUG_WARN,
|
||||||
"%a: gDS->SetMemorySpaceAttributes() failed on region 0x%lx - 0x%lx (%r)\n",
|
"%a: gDS->SetMemorySpaceAttributes() failed on region 0x%lx - 0x%lx (%r)\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
CurBase,
|
CurBase,
|
||||||
CurBase + CurSize - 1,
|
CurBase + CurSize - 1,
|
||||||
Status
|
Status
|
||||||
@ -160,7 +160,7 @@ InitializeHighMemDxe (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Failed to set System RAM @ 0x%lx - 0x%lx attribute (%r)\n",
|
"%a: Failed to set System RAM @ 0x%lx - 0x%lx attribute (%r)\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
CurBase,
|
CurBase,
|
||||||
CurBase + CurSize - 1,
|
CurBase + CurSize - 1,
|
||||||
Status
|
Status
|
||||||
@ -169,7 +169,7 @@ InitializeHighMemDxe (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: Add System RAM @ 0x%lx - 0x%lx\n",
|
"%a: Add System RAM @ 0x%lx - 0x%lx\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
CurBase,
|
CurBase,
|
||||||
CurBase + CurSize - 1
|
CurBase + CurSize - 1
|
||||||
));
|
));
|
||||||
|
@ -75,7 +75,7 @@ InitializeVirtioFdtDxe (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: GetNodeProperty () failed (Status == %r)\n",
|
"%a: GetNodeProperty () failed (Status == %r)\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
continue;
|
continue;
|
||||||
@ -93,7 +93,7 @@ InitializeVirtioFdtDxe (
|
|||||||
sizeof (VIRTIO_TRANSPORT_DEVICE_PATH)
|
sizeof (VIRTIO_TRANSPORT_DEVICE_PATH)
|
||||||
);
|
);
|
||||||
if (DevicePath == NULL) {
|
if (DevicePath == NULL) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: Out of memory\n", __FUNCTION__));
|
DEBUG ((DEBUG_ERROR, "%a: Out of memory\n", __func__));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -117,7 +117,7 @@ InitializeVirtioFdtDxe (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Failed to install the EFI_DEVICE_PATH "
|
"%a: Failed to install the EFI_DEVICE_PATH "
|
||||||
"protocol on a new handle (Status == %r)\n",
|
"protocol on a new handle (Status == %r)\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
FreePool (DevicePath);
|
FreePool (DevicePath);
|
||||||
@ -130,7 +130,7 @@ InitializeVirtioFdtDxe (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Failed to install VirtIO transport @ 0x%Lx "
|
"%a: Failed to install VirtIO transport @ 0x%Lx "
|
||||||
"on handle %p (Status == %r)\n",
|
"on handle %p (Status == %r)\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
RegBase,
|
RegBase,
|
||||||
Handle,
|
Handle,
|
||||||
Status
|
Status
|
||||||
@ -152,7 +152,7 @@ InitializeVirtioFdtDxe (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Error occurred while iterating DT nodes "
|
"%a: Error occurred while iterating DT nodes "
|
||||||
"(FindNodeStatus == %r)\n",
|
"(FindNodeStatus == %r)\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
FindNodeStatus
|
FindNodeStatus
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
@ -275,7 +275,7 @@ CheckDevice (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_WARN,
|
DEBUG_WARN,
|
||||||
"%a: 64-bit MMIO BARs may be degraded for PCI 0x%04x:0x%04x (rev %d)\n",
|
"%a: 64-bit MMIO BARs may be degraded for PCI 0x%04x:0x%04x (rev %d)\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(UINT32)VendorId,
|
(UINT32)VendorId,
|
||||||
(UINT32)DeviceId,
|
(UINT32)DeviceId,
|
||||||
(UINT8)RevisionId
|
(UINT8)RevisionId
|
||||||
|
@ -92,7 +92,7 @@ IoMmuMap (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: Operation=%a Host=0x%p Bytes=0x%Lx\n",
|
"%a: Operation=%a Host=0x%p Bytes=0x%Lx\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
((Operation >= 0 &&
|
((Operation >= 0 &&
|
||||||
Operation < ARRAY_SIZE (mBusMasterOperationName)) ?
|
Operation < ARRAY_SIZE (mBusMasterOperationName)) ?
|
||||||
mBusMasterOperationName[Operation] :
|
mBusMasterOperationName[Operation] :
|
||||||
@ -289,7 +289,7 @@ IoMmuMap (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: Mapping=0x%p Device(PlainText)=0x%Lx Crypted=0x%Lx Pages=0x%Lx, ReservedMemBitmap=0x%Lx\n",
|
"%a: Mapping=0x%p Device(PlainText)=0x%Lx Crypted=0x%Lx Pages=0x%Lx, ReservedMemBitmap=0x%Lx\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
MapInfo,
|
MapInfo,
|
||||||
MapInfo->PlainTextAddress,
|
MapInfo->PlainTextAddress,
|
||||||
MapInfo->CryptedAddress,
|
MapInfo->CryptedAddress,
|
||||||
@ -342,7 +342,7 @@ IoMmuUnmapWorker (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: Mapping=0x%p MemoryMapLocked=%d\n",
|
"%a: Mapping=0x%p MemoryMapLocked=%d\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Mapping,
|
Mapping,
|
||||||
MemoryMapLocked
|
MemoryMapLocked
|
||||||
));
|
));
|
||||||
@ -537,7 +537,7 @@ IoMmuAllocateBuffer (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: MemoryType=%u Pages=0x%Lx Attributes=0x%Lx\n",
|
"%a: MemoryType=%u Pages=0x%Lx Attributes=0x%Lx\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(UINT32)MemoryType,
|
(UINT32)MemoryType,
|
||||||
(UINT64)Pages,
|
(UINT64)Pages,
|
||||||
Attributes
|
Attributes
|
||||||
@ -625,7 +625,7 @@ IoMmuAllocateBuffer (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: Host=0x%Lx Stash=0x%p\n",
|
"%a: Host=0x%Lx Stash=0x%p\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
PhysicalAddress,
|
PhysicalAddress,
|
||||||
StashBuffer
|
StashBuffer
|
||||||
));
|
));
|
||||||
@ -663,7 +663,7 @@ IoMmuFreeBuffer (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: Host=0x%p Pages=0x%Lx\n",
|
"%a: Host=0x%p Pages=0x%Lx\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
HostAddress,
|
HostAddress,
|
||||||
(UINT64)Pages
|
(UINT64)Pages
|
||||||
));
|
));
|
||||||
@ -818,7 +818,7 @@ IoMmuExitBoot (
|
|||||||
// queue EventToSignal's NotifyFunction after the NotifyFunctions of *all*
|
// queue EventToSignal's NotifyFunction after the NotifyFunctions of *all*
|
||||||
// events in EFI_EVENT_GROUP_EXIT_BOOT_SERVICES.
|
// events in EFI_EVENT_GROUP_EXIT_BOOT_SERVICES.
|
||||||
//
|
//
|
||||||
DEBUG ((DEBUG_VERBOSE, "%a\n", __FUNCTION__));
|
DEBUG ((DEBUG_VERBOSE, "%a\n", __func__));
|
||||||
gBS->SignalEvent (EventToSignal);
|
gBS->SignalEvent (EventToSignal);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -847,7 +847,7 @@ IoMmuUnmapAllMappings (
|
|||||||
LIST_ENTRY *NextNode;
|
LIST_ENTRY *NextNode;
|
||||||
MAP_INFO *MapInfo;
|
MAP_INFO *MapInfo;
|
||||||
|
|
||||||
DEBUG ((DEBUG_VERBOSE, "%a\n", __FUNCTION__));
|
DEBUG ((DEBUG_VERBOSE, "%a\n", __func__));
|
||||||
|
|
||||||
//
|
//
|
||||||
// All drivers that had set up IOMMU mappings have halted their respective
|
// All drivers that had set up IOMMU mappings have halted their respective
|
||||||
@ -933,7 +933,7 @@ InstallIoMmuProtocol (
|
|||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
mReservedSharedMemSupported = FALSE;
|
mReservedSharedMemSupported = FALSE;
|
||||||
} else {
|
} else {
|
||||||
DEBUG ((DEBUG_INFO, "%a: Feature of reserved memory for DMA is supported.\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a: Feature of reserved memory for DMA is supported.\n", __func__));
|
||||||
}
|
}
|
||||||
|
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
|
@ -153,7 +153,7 @@ IoMmuInitReservedSharedMem (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: ReservedMem (%d pages) address = 0x%llx\n",
|
"%a: ReservedMem (%d pages) address = 0x%llx\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
TotalPages,
|
TotalPages,
|
||||||
PhysicalAddress
|
PhysicalAddress
|
||||||
));
|
));
|
||||||
@ -330,7 +330,7 @@ InternalAllocateBuffer (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: range-size: %lx, start-address=0x%llx, pages=0x%llx, bits=0x%lx, bitmap: %lx => %lx\n",
|
"%a: range-size: %lx, start-address=0x%llx, pages=0x%llx, bits=0x%lx, bitmap: %lx => %lx\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
MemRange->DataSize,
|
MemRange->DataSize,
|
||||||
*PhysicalAddress,
|
*PhysicalAddress,
|
||||||
Pages,
|
Pages,
|
||||||
@ -401,7 +401,7 @@ IoMmuFreeBounceBuffer (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: PlainTextAddress=0x%Lx, bits=0x%Lx, bitmap: %Lx => %Lx\n",
|
"%a: PlainTextAddress=0x%Lx, bits=0x%Lx, bitmap: %Lx => %Lx\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
MapInfo->PlainTextAddress,
|
MapInfo->PlainTextAddress,
|
||||||
MapInfo->ReservedMemBitmap,
|
MapInfo->ReservedMemBitmap,
|
||||||
mReservedMemBitmap,
|
mReservedMemBitmap,
|
||||||
@ -480,7 +480,7 @@ IoMmuFreeCommonBuffer (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: CommonBuffer=0x%Lx, bits=0x%Lx, bitmap: %Lx => %Lx\n",
|
"%a: CommonBuffer=0x%Lx, bits=0x%Lx, bitmap: %Lx => %Lx\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(UINT64)(UINTN)CommonBufferHeader + SIZE_4KB,
|
(UINT64)(UINTN)CommonBufferHeader + SIZE_4KB,
|
||||||
CommonBufferHeader->ReservedMemBitmap,
|
CommonBufferHeader->ReservedMemBitmap,
|
||||||
mReservedMemBitmap,
|
mReservedMemBitmap,
|
||||||
|
@ -62,7 +62,7 @@ AcpiTimerLibConstructor (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Unknown Host Bridge Device ID: 0x%04x\n",
|
"%a: Unknown Host Bridge Device ID: 0x%04x\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
HostBridgeDevId
|
HostBridgeDevId
|
||||||
));
|
));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
|
@ -59,7 +59,7 @@ AcpiTimerLibConstructor (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Unknown Host Bridge Device ID: 0x%04x\n",
|
"%a: Unknown Host Bridge Device ID: 0x%04x\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
HostBridgeDevId
|
HostBridgeDevId
|
||||||
));
|
));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
@ -119,7 +119,7 @@ InternalAcpiGetTimerTick (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Unknown Host Bridge Device ID: 0x%04x\n",
|
"%a: Unknown Host Bridge Device ID: 0x%04x\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
HostBridgeDevId
|
HostBridgeDevId
|
||||||
));
|
));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
|
@ -76,7 +76,7 @@ AcpiTimerLibConstructor (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Unknown Host Bridge Device ID: 0x%04x\n",
|
"%a: Unknown Host Bridge Device ID: 0x%04x\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
HostBridgeDevId
|
HostBridgeDevId
|
||||||
));
|
));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
|
@ -164,7 +164,7 @@ AllocatePageTableMemory (
|
|||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a:%a: Buffer=0x%Lx Pages=%ld\n",
|
"%a:%a: Buffer=0x%Lx Pages=%ld\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Buffer,
|
Buffer,
|
||||||
Pages
|
Pages
|
||||||
));
|
));
|
||||||
@ -561,7 +561,7 @@ InternalMemEncryptSevCreateIdentityMap1G (
|
|||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a:%a: Cr3Base=0x%Lx Physical=0x%Lx Length=0x%Lx\n",
|
"%a:%a: Cr3Base=0x%Lx Physical=0x%Lx Length=0x%Lx\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Cr3BaseAddress,
|
Cr3BaseAddress,
|
||||||
PhysicalAddress,
|
PhysicalAddress,
|
||||||
(UINT64)Length
|
(UINT64)Length
|
||||||
@ -606,7 +606,7 @@ InternalMemEncryptSevCreateIdentityMap1G (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a:%a: bad PML4 for Physical=0x%Lx\n",
|
"%a:%a: bad PML4 for Physical=0x%Lx\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
PhysicalAddress
|
PhysicalAddress
|
||||||
));
|
));
|
||||||
Status = RETURN_NO_MAPPING;
|
Status = RETURN_NO_MAPPING;
|
||||||
@ -713,7 +713,7 @@ SetMemoryEncDec (
|
|||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a:%a: Cr3Base=0x%Lx Physical=0x%Lx Length=0x%Lx Mode=%a CacheFlush=%u Mmio=%u\n",
|
"%a:%a: Cr3Base=0x%Lx Physical=0x%Lx Length=0x%Lx Mode=%a CacheFlush=%u Mmio=%u\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Cr3BaseAddress,
|
Cr3BaseAddress,
|
||||||
PhysicalAddress,
|
PhysicalAddress,
|
||||||
(UINT64)Length,
|
(UINT64)Length,
|
||||||
@ -786,7 +786,7 @@ SetMemoryEncDec (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a:%a: bad PML4 for Physical=0x%Lx\n",
|
"%a:%a: bad PML4 for Physical=0x%Lx\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
PhysicalAddress
|
PhysicalAddress
|
||||||
));
|
));
|
||||||
Status = RETURN_NO_MAPPING;
|
Status = RETURN_NO_MAPPING;
|
||||||
@ -803,7 +803,7 @@ SetMemoryEncDec (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a:%a: bad PDPE for Physical=0x%Lx\n",
|
"%a:%a: bad PDPE for Physical=0x%Lx\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
PhysicalAddress
|
PhysicalAddress
|
||||||
));
|
));
|
||||||
Status = RETURN_NO_MAPPING;
|
Status = RETURN_NO_MAPPING;
|
||||||
@ -824,7 +824,7 @@ SetMemoryEncDec (
|
|||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a:%a: updated 1GB entry for Physical=0x%Lx\n",
|
"%a:%a: updated 1GB entry for Physical=0x%Lx\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
PhysicalAddress
|
PhysicalAddress
|
||||||
));
|
));
|
||||||
PhysicalAddress += BIT30;
|
PhysicalAddress += BIT30;
|
||||||
@ -837,7 +837,7 @@ SetMemoryEncDec (
|
|||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a:%a: splitting 1GB page for Physical=0x%Lx\n",
|
"%a:%a: splitting 1GB page for Physical=0x%Lx\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
PhysicalAddress
|
PhysicalAddress
|
||||||
));
|
));
|
||||||
Split1GPageTo2M (
|
Split1GPageTo2M (
|
||||||
@ -865,7 +865,7 @@ SetMemoryEncDec (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a:%a: bad PDE for Physical=0x%Lx\n",
|
"%a:%a: bad PDE for Physical=0x%Lx\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
PhysicalAddress
|
PhysicalAddress
|
||||||
));
|
));
|
||||||
Status = RETURN_NO_MAPPING;
|
Status = RETURN_NO_MAPPING;
|
||||||
@ -892,7 +892,7 @@ SetMemoryEncDec (
|
|||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a:%a: splitting 2MB page for Physical=0x%Lx\n",
|
"%a:%a: splitting 2MB page for Physical=0x%Lx\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
PhysicalAddress
|
PhysicalAddress
|
||||||
));
|
));
|
||||||
Split2MPageTo4K (
|
Split2MPageTo4K (
|
||||||
@ -917,7 +917,7 @@ SetMemoryEncDec (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a:%a: bad PTE for Physical=0x%Lx\n",
|
"%a:%a: bad PTE for Physical=0x%Lx\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
PhysicalAddress
|
PhysicalAddress
|
||||||
));
|
));
|
||||||
Status = RETURN_NO_MAPPING;
|
Status = RETURN_NO_MAPPING;
|
||||||
|
@ -113,7 +113,7 @@ PvalidateRange (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a:%a: Failed to %a address 0x%Lx Error code %d\n",
|
"%a:%a: Failed to %a address 0x%Lx Error code %d\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Validate ? "Validate" : "Invalidate",
|
Validate ? "Validate" : "Invalidate",
|
||||||
Address,
|
Address,
|
||||||
Ret
|
Ret
|
||||||
@ -237,7 +237,7 @@ InternalSetPageState (
|
|||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a:%a Address 0x%Lx - 0x%Lx State = %a LargeEntry = %d\n",
|
"%a:%a Address 0x%Lx - 0x%Lx State = %a LargeEntry = %d\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
BaseAddress,
|
BaseAddress,
|
||||||
EndAddress,
|
EndAddress,
|
||||||
State == SevSnpPageShared ? "Shared" : "Private",
|
State == SevSnpPageShared ? "Shared" : "Private",
|
||||||
|
@ -180,7 +180,7 @@ AllocatePageTableMemory (
|
|||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a:%a: Buffer=0x%Lx Pages=%ld\n",
|
"%a:%a: Buffer=0x%Lx Pages=%ld\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Buffer,
|
Buffer,
|
||||||
Pages
|
Pages
|
||||||
));
|
));
|
||||||
@ -542,7 +542,7 @@ SetOrClearSharedBit (
|
|||||||
|
|
||||||
TdStatus = TdVmCall (TDVMCALL_MAPGPA, PhysicalAddress, Length, 0, 0, NULL);
|
TdStatus = TdVmCall (TDVMCALL_MAPGPA, PhysicalAddress, Length, 0, 0, NULL);
|
||||||
if (TdStatus != 0) {
|
if (TdStatus != 0) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: TdVmcall(MAPGPA) failed with %llx\n", __FUNCTION__, TdStatus));
|
DEBUG ((DEBUG_ERROR, "%a: TdVmcall(MAPGPA) failed with %llx\n", __func__, TdStatus));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
return EFI_DEVICE_ERROR;
|
return EFI_DEVICE_ERROR;
|
||||||
}
|
}
|
||||||
@ -553,14 +553,14 @@ SetOrClearSharedBit (
|
|||||||
if (Mode == ClearSharedBit) {
|
if (Mode == ClearSharedBit) {
|
||||||
Status = gBS->LocateProtocol (&gEdkiiMemoryAcceptProtocolGuid, NULL, (VOID **)&MemoryAcceptProtocol);
|
Status = gBS->LocateProtocol (&gEdkiiMemoryAcceptProtocolGuid, NULL, (VOID **)&MemoryAcceptProtocol);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: Failed to locate MemoryAcceptProtocol with %r\n", __FUNCTION__, Status));
|
DEBUG ((DEBUG_ERROR, "%a: Failed to locate MemoryAcceptProtocol with %r\n", __func__, Status));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
Status = MemoryAcceptProtocol->AcceptMemory (MemoryAcceptProtocol, PhysicalAddress, Length);
|
Status = MemoryAcceptProtocol->AcceptMemory (MemoryAcceptProtocol, PhysicalAddress, Length);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: Failed to AcceptMemory with %r\n", __FUNCTION__, Status));
|
DEBUG ((DEBUG_ERROR, "%a: Failed to AcceptMemory with %r\n", __func__, Status));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
@ -570,7 +570,7 @@ SetOrClearSharedBit (
|
|||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a:%a: pte=0x%Lx AddressEncMask=0x%Lx Mode=0x%x MapGPA Status=0x%x\n",
|
"%a:%a: pte=0x%Lx AddressEncMask=0x%Lx Mode=0x%x MapGPA Status=0x%x\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
*PageTablePointer,
|
*PageTablePointer,
|
||||||
AddressEncMask,
|
AddressEncMask,
|
||||||
Mode,
|
Mode,
|
||||||
@ -677,7 +677,7 @@ SetMemorySharedOrPrivate (
|
|||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a:%a: Cr3Base=0x%Lx Physical=0x%Lx Length=0x%Lx Mode=%a\n",
|
"%a:%a: Cr3Base=0x%Lx Physical=0x%Lx Length=0x%Lx Mode=%a\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Cr3BaseAddress,
|
Cr3BaseAddress,
|
||||||
PhysicalAddress,
|
PhysicalAddress,
|
||||||
(UINT64)Length,
|
(UINT64)Length,
|
||||||
@ -734,7 +734,7 @@ SetMemorySharedOrPrivate (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a:%a: bad PML4 for Physical=0x%Lx\n",
|
"%a:%a: bad PML4 for Physical=0x%Lx\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
PhysicalAddress
|
PhysicalAddress
|
||||||
));
|
));
|
||||||
Status = RETURN_NO_MAPPING;
|
Status = RETURN_NO_MAPPING;
|
||||||
@ -751,7 +751,7 @@ SetMemorySharedOrPrivate (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a:%a: bad PDPE for Physical=0x%Lx\n",
|
"%a:%a: bad PDPE for Physical=0x%Lx\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
PhysicalAddress
|
PhysicalAddress
|
||||||
));
|
));
|
||||||
Status = RETURN_NO_MAPPING;
|
Status = RETURN_NO_MAPPING;
|
||||||
@ -776,7 +776,7 @@ SetMemorySharedOrPrivate (
|
|||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a:%a: updated 1GB entry for Physical=0x%Lx\n",
|
"%a:%a: updated 1GB entry for Physical=0x%Lx\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
PhysicalAddress
|
PhysicalAddress
|
||||||
));
|
));
|
||||||
PhysicalAddress += BIT30;
|
PhysicalAddress += BIT30;
|
||||||
@ -789,7 +789,7 @@ SetMemorySharedOrPrivate (
|
|||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a:%a: splitting 1GB page for Physical=0x%Lx\n",
|
"%a:%a: splitting 1GB page for Physical=0x%Lx\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
PhysicalAddress
|
PhysicalAddress
|
||||||
));
|
));
|
||||||
Split1GPageTo2M (
|
Split1GPageTo2M (
|
||||||
@ -817,7 +817,7 @@ SetMemorySharedOrPrivate (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a:%a: bad PDE for Physical=0x%Lx\n",
|
"%a:%a: bad PDE for Physical=0x%Lx\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
PhysicalAddress
|
PhysicalAddress
|
||||||
));
|
));
|
||||||
Status = RETURN_NO_MAPPING;
|
Status = RETURN_NO_MAPPING;
|
||||||
@ -848,7 +848,7 @@ SetMemorySharedOrPrivate (
|
|||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a:%a: splitting 2MB page for Physical=0x%Lx\n",
|
"%a:%a: splitting 2MB page for Physical=0x%Lx\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
PhysicalAddress
|
PhysicalAddress
|
||||||
));
|
));
|
||||||
|
|
||||||
@ -877,7 +877,7 @@ SetMemorySharedOrPrivate (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a:%a: bad PTE for Physical=0x%Lx\n",
|
"%a:%a: bad PTE for Physical=0x%Lx\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
PhysicalAddress
|
PhysicalAddress
|
||||||
));
|
));
|
||||||
Status = RETURN_NO_MAPPING;
|
Status = RETURN_NO_MAPPING;
|
||||||
|
@ -427,7 +427,7 @@ DebugDumpPciCapList (
|
|||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a:%a: %a 0x%04x %03u/%03u v0x%x @0x%03x+0x%03x\n",
|
"%a:%a: %a 0x%04x %03u/%03u v0x%x @0x%03x+0x%03x\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(Info.Domain == PciCapNormal ? "Norm" : "Extd"),
|
(Info.Domain == PciCapNormal ? "Norm" : "Extd"),
|
||||||
Info.CapId,
|
Info.CapId,
|
||||||
Info.Instance,
|
Info.Instance,
|
||||||
@ -753,7 +753,7 @@ FreeOutCapList:
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a:%a: %r\n",
|
"%a:%a: %r\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
return Status;
|
return Status;
|
||||||
|
@ -265,7 +265,7 @@ TdxMmioReadWrite (
|
|||||||
UINT64 TdStatus;
|
UINT64 TdStatus;
|
||||||
|
|
||||||
if ((MmioSize != 1) && (MmioSize != 2) && (MmioSize != 4) && (MmioSize != 8)) {
|
if ((MmioSize != 1) && (MmioSize != 2) && (MmioSize != 4) && (MmioSize != 8)) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: Invalid MmioSize - %d\n", __FUNCTION__, MmioSize));
|
DEBUG ((DEBUG_ERROR, "%a: Invalid MmioSize - %d\n", __func__, MmioSize));
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -283,7 +283,7 @@ TdxMmioReadWrite (
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (TdStatus != 0) {
|
if (TdStatus != 0) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: TdVmcall failed with %llx\n", __FUNCTION__, TdStatus));
|
DEBUG ((DEBUG_ERROR, "%a: TdVmcall failed with %llx\n", __func__, TdStatus));
|
||||||
return EFI_ABORTED;
|
return EFI_ABORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -334,7 +334,7 @@ ParseMmioExitInstructions (
|
|||||||
|
|
||||||
Status = CcInitInstructionData (InstructionData, NULL, Regs);
|
Status = CcInitInstructionData (InstructionData, NULL, Regs);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: Initialize InstructionData failed! (%r)\n", __FUNCTION__, Status));
|
DEBUG ((DEBUG_ERROR, "%a: Initialize InstructionData failed! (%r)\n", __func__, Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -361,7 +361,7 @@ ParseMmioExitInstructions (
|
|||||||
0);
|
0);
|
||||||
|
|
||||||
if (InstructionData->Ext.ModRm.Mod == 3) {
|
if (InstructionData->Ext.ModRm.Mod == 3) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: Parse Ext.ModRm.Mod error! (OpCode: 0x%x)\n", __FUNCTION__, OpCode));
|
DEBUG ((DEBUG_ERROR, "%a: Parse Ext.ModRm.Mod error! (OpCode: 0x%x)\n", __func__, OpCode));
|
||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -440,7 +440,7 @@ ParseMmioExitInstructions (
|
|||||||
//
|
//
|
||||||
// NPF on two register operands???
|
// NPF on two register operands???
|
||||||
//
|
//
|
||||||
DEBUG ((DEBUG_ERROR, "%a: Parse Ext.ModRm.Mod error! (OpCode: 0x%x)\n", __FUNCTION__, OpCode));
|
DEBUG ((DEBUG_ERROR, "%a: Parse Ext.ModRm.Mod error! (OpCode: 0x%x)\n", __func__, OpCode));
|
||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -558,7 +558,7 @@ ParseMmioExitInstructions (
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
DEBUG ((DEBUG_ERROR, "%a: Invalid MMIO opcode (%x)\n", __FUNCTION__, OpCode));
|
DEBUG ((DEBUG_ERROR, "%a: Invalid MMIO opcode (%x)\n", __func__, OpCode));
|
||||||
Status = EFI_UNSUPPORTED;
|
Status = EFI_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -606,12 +606,12 @@ MmioExit (
|
|||||||
Gpaw = (UINT8)(TdReturnData.TdInfo.Gpaw & 0x3f);
|
Gpaw = (UINT8)(TdReturnData.TdInfo.Gpaw & 0x3f);
|
||||||
TdSharedPageMask = 1ULL << (Gpaw - 1);
|
TdSharedPageMask = 1ULL << (Gpaw - 1);
|
||||||
} else {
|
} else {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: TDCALL failed with status=%llx\n", __FUNCTION__, TdStatus));
|
DEBUG ((DEBUG_ERROR, "%a: TDCALL failed with status=%llx\n", __func__, TdStatus));
|
||||||
goto FatalError;
|
goto FatalError;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((Veinfo->GuestPA & TdSharedPageMask) == 0) {
|
if ((Veinfo->GuestPA & TdSharedPageMask) == 0) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: EPT-violation #VE on private memory is not allowed!", __FUNCTION__));
|
DEBUG ((DEBUG_ERROR, "%a: EPT-violation #VE on private memory is not allowed!", __func__));
|
||||||
goto FatalError;
|
goto FatalError;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -624,7 +624,7 @@ MmioExit (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Address is not correct! (%d: 0x%llx != 0x%llx)\n",
|
"%a: Address is not correct! (%d: 0x%llx != 0x%llx)\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
ParsedInstruction.OpCode,
|
ParsedInstruction.OpCode,
|
||||||
Veinfo->GuestPA,
|
Veinfo->GuestPA,
|
||||||
ParsedInstruction.Address
|
ParsedInstruction.Address
|
||||||
|
@ -201,7 +201,7 @@ QemuLoadKernelImage (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
Status == EFI_NOT_FOUND ? DEBUG_INFO : DEBUG_ERROR,
|
Status == EFI_NOT_FOUND ? DEBUG_INFO : DEBUG_ERROR,
|
||||||
"%a: LoadImage(): %r\n",
|
"%a: LoadImage(): %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
return Status;
|
return Status;
|
||||||
@ -279,7 +279,7 @@ QemuLoadKernelImage (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: kernel command line is not NUL-terminated\n",
|
"%a: kernel command line is not NUL-terminated\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
Status = EFI_PROTOCOL_ERROR;
|
Status = EFI_PROTOCOL_ERROR;
|
||||||
goto FreeCommandLine;
|
goto FreeCommandLine;
|
||||||
@ -330,7 +330,7 @@ QemuLoadKernelImage (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: command line: \"%s\"\n",
|
"%a: command line: \"%s\"\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(CHAR16 *)KernelLoadedImage->LoadOptions
|
(CHAR16 *)KernelLoadedImage->LoadOptions
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
@ -91,7 +91,7 @@ FailedAllocate:
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
EFI_D_ERROR,
|
EFI_D_ERROR,
|
||||||
"%a: Failed to allocate memory for hardware info\n",
|
"%a: Failed to allocate memory for hardware info\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
|
|
||||||
return EFI_OUT_OF_RESOURCES;
|
return EFI_OUT_OF_RESOURCES;
|
||||||
|
@ -125,7 +125,7 @@ SaveLockBox (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: Guid=%g Buffer=%p Length=0x%x\n",
|
"%a: Guid=%g Buffer=%p Length=0x%x\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Guid,
|
Guid,
|
||||||
Buffer,
|
Buffer,
|
||||||
(UINT32)Length
|
(UINT32)Length
|
||||||
@ -196,7 +196,7 @@ SetLockBoxAttributes (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: Guid=%g Attributes=0x%Lx\n",
|
"%a: Guid=%g Attributes=0x%Lx\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Guid,
|
Guid,
|
||||||
Attributes
|
Attributes
|
||||||
));
|
));
|
||||||
@ -253,7 +253,7 @@ UpdateLockBox (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: Guid=%g Offset=0x%x Length=0x%x\n",
|
"%a: Guid=%g Offset=0x%x Length=0x%x\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Guid,
|
Guid,
|
||||||
(UINT32)Offset,
|
(UINT32)Offset,
|
||||||
(UINT32)Length
|
(UINT32)Length
|
||||||
@ -315,7 +315,7 @@ RestoreLockBox (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: Guid=%g Buffer=%p\n",
|
"%a: Guid=%g Buffer=%p\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Guid,
|
Guid,
|
||||||
Buffer
|
Buffer
|
||||||
));
|
));
|
||||||
@ -397,7 +397,7 @@ RestoreAllLockBoxInPlace (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: Guid=%g Buffer=%p\n",
|
"%a: Guid=%g Buffer=%p\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
&Header->Guid,
|
&Header->Guid,
|
||||||
Buffer
|
Buffer
|
||||||
));
|
));
|
||||||
|
@ -156,7 +156,7 @@ PciHostBridgeUtilityInitRootBridge (
|
|||||||
&mRootBridgeDevicePathTemplate
|
&mRootBridgeDevicePathTemplate
|
||||||
);
|
);
|
||||||
if (DevicePath == NULL) {
|
if (DevicePath == NULL) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: %r\n", __FUNCTION__, EFI_OUT_OF_RESOURCES));
|
DEBUG ((DEBUG_ERROR, "%a: %r\n", __func__, EFI_OUT_OF_RESOURCES));
|
||||||
return EFI_OUT_OF_RESOURCES;
|
return EFI_OUT_OF_RESOURCES;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -166,7 +166,7 @@ PciHostBridgeUtilityInitRootBridge (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: populated root bus %d, with room for %d subordinate bus(es)\n",
|
"%a: populated root bus %d, with room for %d subordinate bus(es)\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
RootBusNumber,
|
RootBusNumber,
|
||||||
MaxSubBusNumber - RootBusNumber
|
MaxSubBusNumber - RootBusNumber
|
||||||
));
|
));
|
||||||
@ -253,7 +253,7 @@ PciHostBridgeUtilityGetRootBridgesBusScan (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: invalid bus range with BusMin %Lu and BusMax "
|
"%a: invalid bus range with BusMin %Lu and BusMax "
|
||||||
"%Lu\n",
|
"%Lu\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(UINT64)BusMin,
|
(UINT64)BusMin,
|
||||||
(UINT64)BusMax
|
(UINT64)BusMax
|
||||||
));
|
));
|
||||||
@ -283,7 +283,7 @@ PciHostBridgeUtilityGetRootBridgesBusScan (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: invalid count of extra root buses (%Lu) "
|
"%a: invalid count of extra root buses (%Lu) "
|
||||||
"reported by QEMU\n",
|
"reported by QEMU\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
ExtraRootBridges
|
ExtraRootBridges
|
||||||
));
|
));
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -292,7 +292,7 @@ PciHostBridgeUtilityGetRootBridgesBusScan (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: %Lu extra root buses reported by QEMU\n",
|
"%a: %Lu extra root buses reported by QEMU\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
ExtraRootBridges
|
ExtraRootBridges
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
@ -302,7 +302,7 @@ PciHostBridgeUtilityGetRootBridgesBusScan (
|
|||||||
//
|
//
|
||||||
Bridges = AllocatePool ((1 + (UINTN)ExtraRootBridges) * sizeof *Bridges);
|
Bridges = AllocatePool ((1 + (UINTN)ExtraRootBridges) * sizeof *Bridges);
|
||||||
if (Bridges == NULL) {
|
if (Bridges == NULL) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: %r\n", __FUNCTION__, EFI_OUT_OF_RESOURCES));
|
DEBUG ((DEBUG_ERROR, "%a: %r\n", __func__, EFI_OUT_OF_RESOURCES));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -471,7 +471,7 @@ PciHostBridgeUtilityGetRootBridgesHostProvided (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Failed to allocate memory for hardware resources info\n",
|
"%a: Failed to allocate memory for hardware resources info\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@ -495,7 +495,7 @@ PciHostBridgeUtilityGetRootBridgesHostProvided (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Failed to create hardware info list to retrieve host "
|
"%a: Failed to create hardware info list to retrieve host "
|
||||||
"bridges information from fw-cfg\n",
|
"bridges information from fw-cfg\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
|
|
||||||
goto FreeBridges;
|
goto FreeBridges;
|
||||||
@ -514,7 +514,7 @@ PciHostBridgeUtilityGetRootBridgesHostProvided (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: Host provided description for %Lu root bridges\n",
|
"%a: Host provided description for %Lu root bridges\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
PciHostBridgeCount
|
PciHostBridgeCount
|
||||||
));
|
));
|
||||||
|
|
||||||
@ -523,7 +523,7 @@ PciHostBridgeUtilityGetRootBridgesHostProvided (
|
|||||||
//
|
//
|
||||||
Bridges = AllocatePool (((UINTN)PciHostBridgeCount) * sizeof *Bridges);
|
Bridges = AllocatePool (((UINTN)PciHostBridgeCount) * sizeof *Bridges);
|
||||||
if (Bridges == NULL) {
|
if (Bridges == NULL) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: %r\n", __FUNCTION__, EFI_OUT_OF_RESOURCES));
|
DEBUG ((DEBUG_ERROR, "%a: %r\n", __func__, EFI_OUT_OF_RESOURCES));
|
||||||
goto FreeBridges;
|
goto FreeBridges;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -567,7 +567,7 @@ PciHostBridgeUtilityGetRootBridgesHostProvided (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: invalid bus range with BusMin %Lu and BusMax "
|
"%a: invalid bus range with BusMin %Lu and BusMax "
|
||||||
"%Lu\n",
|
"%Lu\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(UINT64)RootBridgeNumber,
|
(UINT64)RootBridgeNumber,
|
||||||
(UINT64)LastRootBridgeNumber
|
(UINT64)LastRootBridgeNumber
|
||||||
));
|
));
|
||||||
|
@ -371,7 +371,7 @@ AllocatePageTableMemory (
|
|||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a:%a: Buffer=0x%Lx Pages=%ld, PageTablePool=%p\n",
|
"%a:%a: Buffer=0x%Lx Pages=%ld, PageTablePool=%p\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Buffer,
|
Buffer,
|
||||||
Pages,
|
Pages,
|
||||||
*PageTablePool
|
*PageTablePool
|
||||||
|
@ -122,7 +122,7 @@ HandleStatusCode (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a:%a: malformed Data\n",
|
"%a:%a: malformed Data\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
@ -143,7 +143,7 @@ HandleStatusCode (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a:%a: failed to get %g:\"%s\": %r\n",
|
"%a:%a: failed to get %g:\"%s\": %r\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
&gEfiGlobalVariableGuid,
|
&gEfiGlobalVariableGuid,
|
||||||
EFI_BOOT_CURRENT_VARIABLE_NAME,
|
EFI_BOOT_CURRENT_VARIABLE_NAME,
|
||||||
Status
|
Status
|
||||||
@ -156,7 +156,7 @@ HandleStatusCode (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a:%a: got %Lu bytes for %g:\"%s\", expected %Lu\n",
|
"%a:%a: got %Lu bytes for %g:\"%s\", expected %Lu\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(UINT64)VariableSize,
|
(UINT64)VariableSize,
|
||||||
&gEfiGlobalVariableGuid,
|
&gEfiGlobalVariableGuid,
|
||||||
EFI_BOOT_CURRENT_VARIABLE_NAME,
|
EFI_BOOT_CURRENT_VARIABLE_NAME,
|
||||||
@ -180,7 +180,7 @@ HandleStatusCode (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a:%a: EfiBootManagerVariableToLoadOption(\"%s\"): %r\n",
|
"%a:%a: EfiBootManagerVariableToLoadOption(\"%s\"): %r\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
BootOptionName,
|
BootOptionName,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
@ -309,7 +309,7 @@ PlatformBmPrintScRegisterHandler (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a:%a: failed to register status code handler: %r\n",
|
"%a:%a: failed to register status code handler: %r\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
return Status;
|
return Status;
|
||||||
@ -337,7 +337,7 @@ PlatformBmPrintScRegisterHandler (
|
|||||||
"%a:%a: failed to create ExitBootServices() event: "
|
"%a:%a: failed to create ExitBootServices() event: "
|
||||||
"%r\n",
|
"%r\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
StatusCodeRouter->Unregister (HandleStatusCode);
|
StatusCodeRouter->Unregister (HandleStatusCode);
|
||||||
|
@ -275,7 +275,7 @@ RemoveStaleFvFileOptions (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
EFI_ERROR (Status) ? DEBUG_WARN : DEBUG_VERBOSE,
|
EFI_ERROR (Status) ? DEBUG_WARN : DEBUG_VERBOSE,
|
||||||
"%a: removing stale Boot#%04x %s: %r\n",
|
"%a: removing stale Boot#%04x %s: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(UINT32)BootOptions[Index].OptionNumber,
|
(UINT32)BootOptions[Index].OptionNumber,
|
||||||
DevicePathString == NULL ? L"<unavailable>" : DevicePathString,
|
DevicePathString == NULL ? L"<unavailable>" : DevicePathString,
|
||||||
Status
|
Status
|
||||||
@ -479,7 +479,7 @@ PlatformBootManagerBeforeConsole (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
EFI_ERROR (Status) ? DEBUG_ERROR : DEBUG_VERBOSE,
|
EFI_ERROR (Status) ? DEBUG_ERROR : DEBUG_VERBOSE,
|
||||||
"%a: SetVariable(%s, %u): %r\n",
|
"%a: SetVariable(%s, %u): %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
EFI_TIME_OUT_VARIABLE_NAME,
|
EFI_TIME_OUT_VARIABLE_NAME,
|
||||||
FrontPageTimeout,
|
FrontPageTimeout,
|
||||||
Status
|
Status
|
||||||
@ -632,7 +632,7 @@ ConnectVirtioPciRng (
|
|||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
|
|
||||||
Error:
|
Error:
|
||||||
DEBUG ((DEBUG_ERROR, "%a: %r\n", __FUNCTION__, Status));
|
DEBUG ((DEBUG_ERROR, "%a: %r\n", __func__, Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1283,7 +1283,7 @@ SetPciIntLine (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: PCI host bridge (00:00.0) should have no interrupts!\n",
|
"%a: PCI host bridge (00:00.0) should have no interrupts!\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
}
|
}
|
||||||
@ -1338,7 +1338,7 @@ SetPciIntLine (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: [%02x:%02x.%x] %s -> 0x%02x\n",
|
"%a: [%02x:%02x.%x] %s -> 0x%02x\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(UINT32)Bus,
|
(UINT32)Bus,
|
||||||
(UINT32)Device,
|
(UINT32)Device,
|
||||||
(UINT32)Function,
|
(UINT32)Function,
|
||||||
@ -1416,7 +1416,7 @@ PciAcpiInitialization (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Unknown Host Bridge Device ID: 0x%04x\n",
|
"%a: Unknown Host Bridge Device ID: 0x%04x\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
mHostBridgeDevId
|
mHostBridgeDevId
|
||||||
));
|
));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
|
@ -44,7 +44,7 @@ TryRunningQemuKernel (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: QemuStartKernelImage(): %r\n",
|
"%a: QemuStartKernelImage(): %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
@ -273,7 +273,7 @@ RemoveStaleFvFileOptions (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
EFI_ERROR (Status) ? DEBUG_WARN : DEBUG_VERBOSE,
|
EFI_ERROR (Status) ? DEBUG_WARN : DEBUG_VERBOSE,
|
||||||
"%a: removing stale Boot#%04x %s: %r\n",
|
"%a: removing stale Boot#%04x %s: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(UINT32)BootOptions[Index].OptionNumber,
|
(UINT32)BootOptions[Index].OptionNumber,
|
||||||
DevicePathString == NULL ? L"<unavailable>" : DevicePathString,
|
DevicePathString == NULL ? L"<unavailable>" : DevicePathString,
|
||||||
Status
|
Status
|
||||||
@ -586,7 +586,7 @@ ConnectVirtioPciRng (
|
|||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
|
|
||||||
Error:
|
Error:
|
||||||
DEBUG ((DEBUG_ERROR, "%a: %r\n", __FUNCTION__, Status));
|
DEBUG ((DEBUG_ERROR, "%a: %r\n", __func__, Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1156,7 +1156,7 @@ SetPciIntLine (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: PCI host bridge (00:00.0) should have no interrupts!\n",
|
"%a: PCI host bridge (00:00.0) should have no interrupts!\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
}
|
}
|
||||||
@ -1213,7 +1213,7 @@ SetPciIntLine (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: [%02x:%02x.%x] %s -> 0x%02x\n",
|
"%a: [%02x:%02x.%x] %s -> 0x%02x\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(UINT32)Bus,
|
(UINT32)Bus,
|
||||||
(UINT32)Device,
|
(UINT32)Device,
|
||||||
(UINT32)Function,
|
(UINT32)Function,
|
||||||
@ -1283,7 +1283,7 @@ PciAcpiInitialization (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Unknown Host Bridge Device ID: 0x%04x\n",
|
"%a: Unknown Host Bridge Device ID: 0x%04x\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
mHostBridgeDevId
|
mHostBridgeDevId
|
||||||
));
|
));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
|
@ -280,7 +280,7 @@ RemoveStaleFvFileOptions (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
EFI_ERROR (Status) ? DEBUG_WARN : DEBUG_VERBOSE,
|
EFI_ERROR (Status) ? DEBUG_WARN : DEBUG_VERBOSE,
|
||||||
"%a: removing stale Boot#%04x %s: %r\n",
|
"%a: removing stale Boot#%04x %s: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(UINT32)BootOptions[Index].OptionNumber,
|
(UINT32)BootOptions[Index].OptionNumber,
|
||||||
DevicePathString == NULL ? L"<unavailable>" : DevicePathString,
|
DevicePathString == NULL ? L"<unavailable>" : DevicePathString,
|
||||||
Status
|
Status
|
||||||
@ -551,7 +551,7 @@ ConnectVirtioPciRng (
|
|||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
|
|
||||||
Error:
|
Error:
|
||||||
DEBUG ((DEBUG_ERROR, "%a: %r\n", __FUNCTION__, Status));
|
DEBUG ((DEBUG_ERROR, "%a: %r\n", __func__, Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1157,7 +1157,7 @@ SetPciIntLine (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: PCI host bridge (00:00.0) should have no interrupts!\n",
|
"%a: PCI host bridge (00:00.0) should have no interrupts!\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
}
|
}
|
||||||
@ -1212,7 +1212,7 @@ SetPciIntLine (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: [%02x:%02x.%x] %s -> 0x%02x\n",
|
"%a: [%02x:%02x.%x] %s -> 0x%02x\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(UINT32)Bus,
|
(UINT32)Bus,
|
||||||
(UINT32)Device,
|
(UINT32)Device,
|
||||||
(UINT32)Function,
|
(UINT32)Function,
|
||||||
@ -1280,7 +1280,7 @@ PciAcpiInitialization (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Unknown Host Bridge Device ID: 0x%04x\n",
|
"%a: Unknown Host Bridge Device ID: 0x%04x\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
mHostBridgeDevId
|
mHostBridgeDevId
|
||||||
));
|
));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
|
@ -44,7 +44,7 @@ TryRunningQemuKernel (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: QemuStartKernelImage(): %r\n",
|
"%a: QemuStartKernelImage(): %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
@ -91,7 +91,7 @@ PlatformQemuUc32BaseInitialization (
|
|||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: rounded UC32 base from 0x%x up to 0x%x, for "
|
"%a: rounded UC32 base from 0x%x up to 0x%x, for "
|
||||||
"an UC32 size of 0x%x\n",
|
"an UC32 size of 0x%x\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
PlatformInfoHob->LowMemory,
|
PlatformInfoHob->LowMemory,
|
||||||
PlatformInfoHob->Uc32Base,
|
PlatformInfoHob->Uc32Base,
|
||||||
PlatformInfoHob->Uc32Size
|
PlatformInfoHob->Uc32Size
|
||||||
@ -123,7 +123,7 @@ PlatformGetFirstNonAddressCB (
|
|||||||
|
|
||||||
Candidate = E820Entry->BaseAddr + E820Entry->Length;
|
Candidate = E820Entry->BaseAddr + E820Entry->Length;
|
||||||
if (PlatformInfoHob->FirstNonAddress < Candidate) {
|
if (PlatformInfoHob->FirstNonAddress < Candidate) {
|
||||||
DEBUG ((DEBUG_INFO, "%a: FirstNonAddress=0x%Lx\n", __FUNCTION__, Candidate));
|
DEBUG ((DEBUG_INFO, "%a: FirstNonAddress=0x%Lx\n", __func__, Candidate));
|
||||||
PlatformInfoHob->FirstNonAddress = Candidate;
|
PlatformInfoHob->FirstNonAddress = Candidate;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -151,7 +151,7 @@ PlatformGetLowMemoryCB (
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (PlatformInfoHob->LowMemory < Candidate) {
|
if (PlatformInfoHob->LowMemory < Candidate) {
|
||||||
DEBUG ((DEBUG_INFO, "%a: LowMemory=0x%Lx\n", __FUNCTION__, Candidate));
|
DEBUG ((DEBUG_INFO, "%a: LowMemory=0x%Lx\n", __func__, Candidate));
|
||||||
PlatformInfoHob->LowMemory = (UINT32)Candidate;
|
PlatformInfoHob->LowMemory = (UINT32)Candidate;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -180,7 +180,7 @@ PlatformAddHobCB (
|
|||||||
Base = ALIGN_VALUE (Base, (UINT64)EFI_PAGE_SIZE);
|
Base = ALIGN_VALUE (Base, (UINT64)EFI_PAGE_SIZE);
|
||||||
End = End & ~(UINT64)EFI_PAGE_MASK;
|
End = End & ~(UINT64)EFI_PAGE_MASK;
|
||||||
if (Base < End) {
|
if (Base < End) {
|
||||||
DEBUG ((DEBUG_INFO, "%a: HighMemory [0x%Lx, 0x%Lx)\n", __FUNCTION__, Base, End));
|
DEBUG ((DEBUG_INFO, "%a: HighMemory [0x%Lx, 0x%Lx)\n", __func__, Base, End));
|
||||||
PlatformAddMemoryRangeHob (Base, End);
|
PlatformAddMemoryRangeHob (Base, End);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -188,13 +188,13 @@ PlatformAddHobCB (
|
|||||||
break;
|
break;
|
||||||
case EfiAcpiAddressRangeReserved:
|
case EfiAcpiAddressRangeReserved:
|
||||||
BuildResourceDescriptorHob (EFI_RESOURCE_MEMORY_RESERVED, 0, Base, End - Base);
|
BuildResourceDescriptorHob (EFI_RESOURCE_MEMORY_RESERVED, 0, Base, End - Base);
|
||||||
DEBUG ((DEBUG_INFO, "%a: Reserved [0x%Lx, 0x%Lx)\n", __FUNCTION__, Base, End));
|
DEBUG ((DEBUG_INFO, "%a: Reserved [0x%Lx, 0x%Lx)\n", __func__, Base, End));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_WARN,
|
DEBUG_WARN,
|
||||||
"%a: Type %u [0x%Lx, 0x%Lx) (NOT HANDLED)\n",
|
"%a: Type %u [0x%Lx, 0x%Lx) (NOT HANDLED)\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
E820Entry->Type,
|
E820Entry->Type,
|
||||||
Base,
|
Base,
|
||||||
End
|
End
|
||||||
@ -241,7 +241,7 @@ PlatformReservationConflictCB (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: move mmio: 0x%Lx => %Lx\n",
|
"%a: move mmio: 0x%Lx => %Lx\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
PlatformInfoHob->PcdPciMmio64Base,
|
PlatformInfoHob->PcdPciMmio64Base,
|
||||||
NewBase
|
NewBase
|
||||||
));
|
));
|
||||||
@ -495,7 +495,7 @@ PlatformGetFirstNonAddress (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_WARN,
|
DEBUG_WARN,
|
||||||
"%a: ignoring malformed 64-bit PCI host aperture size from fw_cfg\n",
|
"%a: ignoring malformed 64-bit PCI host aperture size from fw_cfg\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -505,7 +505,7 @@ PlatformGetFirstNonAddress (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: disabling 64-bit PCI host aperture\n",
|
"%a: disabling 64-bit PCI host aperture\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -534,7 +534,7 @@ PlatformGetFirstNonAddress (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: HotPlugMemoryEnd=0x%Lx\n",
|
"%a: HotPlugMemoryEnd=0x%Lx\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
HotPlugMemoryEnd
|
HotPlugMemoryEnd
|
||||||
));
|
));
|
||||||
|
|
||||||
@ -638,7 +638,7 @@ PlatformAddressWidthFromCpuid (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: Signature: '%a', PhysBits: %d, QemuQuirk: %a, Valid: %a\n",
|
"%a: Signature: '%a', PhysBits: %d, QemuQuirk: %a, Valid: %a\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Signature,
|
Signature,
|
||||||
PhysBits,
|
PhysBits,
|
||||||
QemuQuirk ? "On" : "Off",
|
QemuQuirk ? "On" : "Off",
|
||||||
@ -783,7 +783,7 @@ PlatformScanHostProvided64BitPciMmioEnd (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: ignoring malformed hardware information from fw_cfg\n",
|
"%a: ignoring malformed hardware information from fw_cfg\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
*PciMmioAddressEnd = 0;
|
*PciMmioAddressEnd = 0;
|
||||||
return Status;
|
return Status;
|
||||||
@ -806,7 +806,7 @@ PlatformScanHostProvided64BitPciMmioEnd (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: Pci64End=0x%Lx\n",
|
"%a: Pci64End=0x%Lx\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
*PciMmioAddressEnd
|
*PciMmioAddressEnd
|
||||||
));
|
));
|
||||||
|
|
||||||
@ -942,7 +942,7 @@ PlatformQemuInitializeRam (
|
|||||||
MTRR_SETTINGS MtrrSettings;
|
MTRR_SETTINGS MtrrSettings;
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
|
||||||
DEBUG ((DEBUG_INFO, "%a called\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a called\n", __func__));
|
||||||
|
|
||||||
//
|
//
|
||||||
// Determine total memory size available
|
// Determine total memory size available
|
||||||
|
@ -358,7 +358,7 @@ PlatformMiscInitialization (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Unknown Host Bridge Device ID: 0x%04x\n",
|
"%a: Unknown Host Bridge Device ID: 0x%04x\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
PlatformInfoHob->HostBridgeDevId
|
PlatformInfoHob->HostBridgeDevId
|
||||||
));
|
));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
@ -366,7 +366,7 @@ PlatformMiscInitialization (
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (PlatformInfoHob->HostBridgeDevId == CLOUDHV_DEVICE_ID) {
|
if (PlatformInfoHob->HostBridgeDevId == CLOUDHV_DEVICE_ID) {
|
||||||
DEBUG ((DEBUG_INFO, "%a: Cloud Hypervisor is done.\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a: Cloud Hypervisor is done.\n", __func__));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -489,12 +489,12 @@ PlatformCpuCountBugCheck (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Present=%u Possible=%u\n",
|
"%a: Present=%u Possible=%u\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
*Present,
|
*Present,
|
||||||
*Possible
|
*Possible
|
||||||
));
|
));
|
||||||
for (Idx = 0; Idx < ARRAY_SIZE (Message); ++Idx) {
|
for (Idx = 0; Idx < ARRAY_SIZE (Message); ++Idx) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: %a\n", __FUNCTION__, Message[Idx]));
|
DEBUG ((DEBUG_ERROR, "%a: %a\n", __func__, Message[Idx]));
|
||||||
}
|
}
|
||||||
|
|
||||||
ParseStatus = QemuFwCfgParseBool (
|
ParseStatus = QemuFwCfgParseBool (
|
||||||
@ -505,7 +505,7 @@ PlatformCpuCountBugCheck (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_WARN,
|
DEBUG_WARN,
|
||||||
"%a: \"%a\" active. You've been warned.\n",
|
"%a: \"%a\" active. You've been warned.\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
CPUHP_BUGCHECK_OVERRIDE_FWCFG_FILE
|
CPUHP_BUGCHECK_OVERRIDE_FWCFG_FILE
|
||||||
));
|
));
|
||||||
//
|
//
|
||||||
@ -531,7 +531,7 @@ PlatformCpuCountBugCheck (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_WARN,
|
DEBUG_WARN,
|
||||||
"%a: QEMU v2.7 reset bug: BootCpuCount=%d Present=%u\n",
|
"%a: QEMU v2.7 reset bug: BootCpuCount=%d Present=%u\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
*BootCpuCount,
|
*BootCpuCount,
|
||||||
*Present
|
*Present
|
||||||
));
|
));
|
||||||
@ -573,7 +573,7 @@ PlatformMaxCpuCountInitialization (
|
|||||||
// until PcdCpuApInitTimeOutInMicroSeconds elapses (whichever is reached
|
// until PcdCpuApInitTimeOutInMicroSeconds elapses (whichever is reached
|
||||||
// first).
|
// first).
|
||||||
//
|
//
|
||||||
DEBUG ((DEBUG_WARN, "%a: boot CPU count unavailable\n", __FUNCTION__));
|
DEBUG ((DEBUG_WARN, "%a: boot CPU count unavailable\n", __func__));
|
||||||
MaxCpuCount = PlatformInfoHob->DefaultMaxCpuNumber;
|
MaxCpuCount = PlatformInfoHob->DefaultMaxCpuNumber;
|
||||||
} else {
|
} else {
|
||||||
//
|
//
|
||||||
@ -626,7 +626,7 @@ PlatformMaxCpuCountInitialization (
|
|||||||
// steps. Both cases confirm modern mode.
|
// steps. Both cases confirm modern mode.
|
||||||
//
|
//
|
||||||
CmdData2 = IoRead32 (CpuHpBase + QEMU_CPUHP_R_CMD_DATA2);
|
CmdData2 = IoRead32 (CpuHpBase + QEMU_CPUHP_R_CMD_DATA2);
|
||||||
DEBUG ((DEBUG_VERBOSE, "%a: CmdData2=0x%x\n", __FUNCTION__, CmdData2));
|
DEBUG ((DEBUG_VERBOSE, "%a: CmdData2=0x%x\n", __func__, CmdData2));
|
||||||
if (CmdData2 != 0) {
|
if (CmdData2 != 0) {
|
||||||
//
|
//
|
||||||
// QEMU doesn't support the modern CPU hotplug interface. Assume that the
|
// QEMU doesn't support the modern CPU hotplug interface. Assume that the
|
||||||
@ -635,7 +635,7 @@ PlatformMaxCpuCountInitialization (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_WARN,
|
DEBUG_WARN,
|
||||||
"%a: modern CPU hotplug interface unavailable\n",
|
"%a: modern CPU hotplug interface unavailable\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
MaxCpuCount = BootCpuCount;
|
MaxCpuCount = BootCpuCount;
|
||||||
} else {
|
} else {
|
||||||
@ -693,7 +693,7 @@ PlatformMaxCpuCountInitialization (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: BootCpuCount=%d MaxCpuCount=%u\n",
|
"%a: BootCpuCount=%d MaxCpuCount=%u\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
BootCpuCount,
|
BootCpuCount,
|
||||||
MaxCpuCount
|
MaxCpuCount
|
||||||
));
|
));
|
||||||
|
@ -227,7 +227,7 @@ CreateExtraRootBusMap (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: extra bus position 0x%Lx maps to bus number (UID) 0x%x\n",
|
"%a: extra bus position 0x%Lx maps to bus number (UID) 0x%x\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(UINT64)(Idx + 1),
|
(UINT64)(Idx + 1),
|
||||||
Acpi->UID
|
Acpi->UID
|
||||||
));
|
));
|
||||||
|
@ -543,7 +543,7 @@ ParseOfwNode (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: DriverName=\"%.*a\" UnitAddress=\"%.*a\" DeviceArguments=\"%.*a\"\n",
|
"%a: DriverName=\"%.*a\" UnitAddress=\"%.*a\" DeviceArguments=\"%.*a\"\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
OfwNode->DriverName.Len,
|
OfwNode->DriverName.Len,
|
||||||
OfwNode->DriverName.Ptr,
|
OfwNode->DriverName.Ptr,
|
||||||
OfwNode->UnitAddress.Len,
|
OfwNode->UnitAddress.Len,
|
||||||
@ -1477,7 +1477,7 @@ TranslateOfwPath (
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (Status == RETURN_NOT_FOUND) {
|
if (Status == RETURN_NOT_FOUND) {
|
||||||
DEBUG ((DEBUG_VERBOSE, "%a: no more nodes\n", __FUNCTION__));
|
DEBUG ((DEBUG_VERBOSE, "%a: no more nodes\n", __func__));
|
||||||
return RETURN_NOT_FOUND;
|
return RETURN_NOT_FOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1496,7 +1496,7 @@ TranslateOfwPath (
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case RETURN_INVALID_PARAMETER:
|
case RETURN_INVALID_PARAMETER:
|
||||||
DEBUG ((DEBUG_VERBOSE, "%a: parse error\n", __FUNCTION__));
|
DEBUG ((DEBUG_VERBOSE, "%a: parse error\n", __func__));
|
||||||
return RETURN_INVALID_PARAMETER;
|
return RETURN_INVALID_PARAMETER;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@ -1512,22 +1512,22 @@ TranslateOfwPath (
|
|||||||
);
|
);
|
||||||
switch (Status) {
|
switch (Status) {
|
||||||
case RETURN_SUCCESS:
|
case RETURN_SUCCESS:
|
||||||
DEBUG ((DEBUG_VERBOSE, "%a: success: \"%s\"\n", __FUNCTION__, Translated));
|
DEBUG ((DEBUG_VERBOSE, "%a: success: \"%s\"\n", __func__, Translated));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case RETURN_BUFFER_TOO_SMALL:
|
case RETURN_BUFFER_TOO_SMALL:
|
||||||
DEBUG ((DEBUG_VERBOSE, "%a: buffer too small\n", __FUNCTION__));
|
DEBUG ((DEBUG_VERBOSE, "%a: buffer too small\n", __func__));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case RETURN_UNSUPPORTED:
|
case RETURN_UNSUPPORTED:
|
||||||
DEBUG ((DEBUG_VERBOSE, "%a: unsupported\n", __FUNCTION__));
|
DEBUG ((DEBUG_VERBOSE, "%a: unsupported\n", __func__));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case RETURN_PROTOCOL_ERROR:
|
case RETURN_PROTOCOL_ERROR:
|
||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: logic error / system state mismatch\n",
|
"%a: logic error / system state mismatch\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -1604,9 +1604,9 @@ ConnectDevicesFromQemu (
|
|||||||
goto FreeFwCfg;
|
goto FreeFwCfg;
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG ((DEBUG_VERBOSE, "%a: FwCfg:\n", __FUNCTION__));
|
DEBUG ((DEBUG_VERBOSE, "%a: FwCfg:\n", __func__));
|
||||||
DEBUG ((DEBUG_VERBOSE, "%a\n", FwCfg));
|
DEBUG ((DEBUG_VERBOSE, "%a\n", FwCfg));
|
||||||
DEBUG ((DEBUG_VERBOSE, "%a: FwCfg: <end>\n", __FUNCTION__));
|
DEBUG ((DEBUG_VERBOSE, "%a: FwCfg: <end>\n", __func__));
|
||||||
|
|
||||||
if (FeaturePcdGet (PcdQemuBootOrderPciTranslation)) {
|
if (FeaturePcdGet (PcdQemuBootOrderPciTranslation)) {
|
||||||
EfiStatus = CreateExtraRootBusMap (&ExtraPciRoots);
|
EfiStatus = CreateExtraRootBusMap (&ExtraPciRoots);
|
||||||
@ -1686,7 +1686,7 @@ ConnectDevicesFromQemu (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: %Lu OpenFirmware device path(s) connected\n",
|
"%a: %Lu OpenFirmware device path(s) connected\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(UINT64)NumConnected
|
(UINT64)NumConnected
|
||||||
));
|
));
|
||||||
Status = RETURN_SUCCESS;
|
Status = RETURN_SUCCESS;
|
||||||
@ -1750,9 +1750,9 @@ StoreQemuBootOrder (
|
|||||||
goto FreeFwCfg;
|
goto FreeFwCfg;
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG ((DEBUG_VERBOSE, "%a: FwCfg:\n", __FUNCTION__));
|
DEBUG ((DEBUG_VERBOSE, "%a: FwCfg:\n", __func__));
|
||||||
DEBUG ((DEBUG_VERBOSE, "%a\n", FwCfg));
|
DEBUG ((DEBUG_VERBOSE, "%a\n", FwCfg));
|
||||||
DEBUG ((DEBUG_VERBOSE, "%a: FwCfg: <end>\n", __FUNCTION__));
|
DEBUG ((DEBUG_VERBOSE, "%a: FwCfg: <end>\n", __func__));
|
||||||
|
|
||||||
if (FeaturePcdGet (PcdQemuBootOrderPciTranslation)) {
|
if (FeaturePcdGet (PcdQemuBootOrderPciTranslation)) {
|
||||||
EfiStatus = CreateExtraRootBusMap (&ExtraPciRoots);
|
EfiStatus = CreateExtraRootBusMap (&ExtraPciRoots);
|
||||||
@ -1797,7 +1797,7 @@ StoreQemuBootOrder (
|
|||||||
L"VMMBootOrder%04x",
|
L"VMMBootOrder%04x",
|
||||||
VariableIndex++
|
VariableIndex++
|
||||||
);
|
);
|
||||||
DEBUG ((DEBUG_INFO, "%a: %s = %s\n", __FUNCTION__, VariableName, Translated));
|
DEBUG ((DEBUG_INFO, "%a: %s = %s\n", __func__, VariableName, Translated));
|
||||||
gRT->SetVariable (
|
gRT->SetVariable (
|
||||||
VariableName,
|
VariableName,
|
||||||
&gVMMBootOrderGuid,
|
&gVMMBootOrderGuid,
|
||||||
@ -1944,7 +1944,7 @@ Match (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: expanded relative device path \"%s\" for prefix matching\n",
|
"%a: expanded relative device path \"%s\" for prefix matching\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Converted
|
Converted
|
||||||
));
|
));
|
||||||
FreePool (Converted);
|
FreePool (Converted);
|
||||||
@ -1958,7 +1958,7 @@ Match (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: against \"%s\": %a\n",
|
"%a: against \"%s\": %a\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Converted,
|
Converted,
|
||||||
Result ? "match" : "no match"
|
Result ? "match" : "no match"
|
||||||
));
|
));
|
||||||
@ -2068,7 +2068,7 @@ BootOrderComplete (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: keeping \"%s\"\n",
|
"%a: keeping \"%s\"\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Converted
|
Converted
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
@ -2076,7 +2076,7 @@ BootOrderComplete (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: dropping \"%s\"\n",
|
"%a: dropping \"%s\"\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Converted
|
Converted
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
@ -2211,9 +2211,9 @@ SetBootOrderFromQemu (
|
|||||||
goto ErrorFreeFwCfg;
|
goto ErrorFreeFwCfg;
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG ((DEBUG_VERBOSE, "%a: FwCfg:\n", __FUNCTION__));
|
DEBUG ((DEBUG_VERBOSE, "%a: FwCfg:\n", __func__));
|
||||||
DEBUG ((DEBUG_VERBOSE, "%a\n", FwCfg));
|
DEBUG ((DEBUG_VERBOSE, "%a\n", FwCfg));
|
||||||
DEBUG ((DEBUG_VERBOSE, "%a: FwCfg: <end>\n", __FUNCTION__));
|
DEBUG ((DEBUG_VERBOSE, "%a: FwCfg: <end>\n", __func__));
|
||||||
FwCfgPtr = FwCfg;
|
FwCfgPtr = FwCfg;
|
||||||
|
|
||||||
BootOrder.Produced = 0;
|
BootOrder.Produced = 0;
|
||||||
@ -2332,13 +2332,13 @@ SetBootOrderFromQemu (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: setting BootOrder: %r\n",
|
"%a: setting BootOrder: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
goto ErrorFreeExtraPciRoots;
|
goto ErrorFreeExtraPciRoots;
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG ((DEBUG_INFO, "%a: setting BootOrder: success\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a: setting BootOrder: success\n", __func__));
|
||||||
PruneBootVariables (ActiveOption, ActiveCount);
|
PruneBootVariables (ActiveOption, ActiveCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -103,7 +103,7 @@ QemuFwCfgInitialize (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"QemuFwCfgDma %a:%a Failed to locate IOMMU protocol.\n",
|
"QemuFwCfgDma %a:%a Failed to locate IOMMU protocol.\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
CpuDeadLoop ();
|
CpuDeadLoop ();
|
||||||
@ -186,7 +186,7 @@ AllocFwCfgDmaAccessBuffer (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a:%a failed to allocate FW_CFG_DMA_ACCESS\n",
|
"%a:%a failed to allocate FW_CFG_DMA_ACCESS\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
CpuDeadLoop ();
|
CpuDeadLoop ();
|
||||||
@ -215,7 +215,7 @@ AllocFwCfgDmaAccessBuffer (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a:%a failed to Map() FW_CFG_DMA_ACCESS\n",
|
"%a:%a failed to Map() FW_CFG_DMA_ACCESS\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
CpuDeadLoop ();
|
CpuDeadLoop ();
|
||||||
@ -228,7 +228,7 @@ AllocFwCfgDmaAccessBuffer (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a:%a failed to Map() - requested 0x%Lx got 0x%Lx\n",
|
"%a:%a failed to Map() - requested 0x%Lx got 0x%Lx\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(UINT64)sizeof (FW_CFG_DMA_ACCESS),
|
(UINT64)sizeof (FW_CFG_DMA_ACCESS),
|
||||||
(UINT64)Size
|
(UINT64)Size
|
||||||
));
|
));
|
||||||
@ -263,7 +263,7 @@ FreeFwCfgDmaAccessBuffer (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a:%a failed to UnMap() Mapping 0x%Lx\n",
|
"%a:%a failed to UnMap() Mapping 0x%Lx\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(UINT64)(UINTN)Mapping
|
(UINT64)(UINTN)Mapping
|
||||||
));
|
));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
@ -276,7 +276,7 @@ FreeFwCfgDmaAccessBuffer (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a:%a failed to Free() 0x%Lx\n",
|
"%a:%a failed to Free() 0x%Lx\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(UINT64)(UINTN)Access
|
(UINT64)(UINTN)Access
|
||||||
));
|
));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
@ -320,7 +320,7 @@ MapFwCfgDmaDataBuffer (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a:%a failed to Map() Address 0x%Lx Size 0x%Lx\n",
|
"%a:%a failed to Map() Address 0x%Lx Size 0x%Lx\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(UINT64)(UINTN)HostAddress,
|
(UINT64)(UINTN)HostAddress,
|
||||||
(UINT64)Size
|
(UINT64)Size
|
||||||
));
|
));
|
||||||
@ -334,7 +334,7 @@ MapFwCfgDmaDataBuffer (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a:%a failed to Map() - requested 0x%x got 0x%Lx\n",
|
"%a:%a failed to Map() - requested 0x%x got 0x%Lx\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Size,
|
Size,
|
||||||
(UINT64)NumberOfBytes
|
(UINT64)NumberOfBytes
|
||||||
));
|
));
|
||||||
@ -360,7 +360,7 @@ UnmapFwCfgDmaDataBuffer (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a:%a failed to UnMap() Mapping 0x%Lx\n",
|
"%a:%a failed to UnMap() Mapping 0x%Lx\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(UINT64)(UINTN)Mapping
|
(UINT64)(UINTN)Mapping
|
||||||
));
|
));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
|
@ -134,7 +134,7 @@ QemuFwCfgInitialize (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_WARN,
|
DEBUG_WARN,
|
||||||
"%a: No 'qemu,fw-cfg-mmio' compatible DT node found (Status == %r)\n",
|
"%a: No 'qemu,fw-cfg-mmio' compatible DT node found (Status == %r)\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
|
@ -71,7 +71,7 @@ S3SaveStateInstalledNotify (
|
|||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: %a: DmaAccess@0x%Lx ScratchBuffer@[0x%Lx+0x%Lx]\n",
|
"%a: %a: DmaAccess@0x%Lx ScratchBuffer@[0x%Lx+0x%Lx]\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(UINT64)(UINTN)mDmaAccess,
|
(UINT64)(UINTN)mDmaAccess,
|
||||||
(UINT64)(UINTN)mScratchBuffer,
|
(UINT64)(UINTN)mScratchBuffer,
|
||||||
(UINT64)mScratchBufferSize
|
(UINT64)mScratchBufferSize
|
||||||
@ -161,7 +161,7 @@ QemuFwCfgS3CallWhenBootScriptReady (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: %a: fw_cfg DMA unavailable\n",
|
"%a: %a: fw_cfg DMA unavailable\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
return RETURN_NOT_FOUND;
|
return RETURN_NOT_FOUND;
|
||||||
}
|
}
|
||||||
@ -177,7 +177,7 @@ QemuFwCfgS3CallWhenBootScriptReady (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: %a: ScratchBufferSize too big: %Lu\n",
|
"%a: %a: ScratchBufferSize too big: %Lu\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(UINT64)ScratchBufferSize
|
(UINT64)ScratchBufferSize
|
||||||
));
|
));
|
||||||
return RETURN_BAD_BUFFER_SIZE;
|
return RETURN_BAD_BUFFER_SIZE;
|
||||||
@ -192,7 +192,7 @@ QemuFwCfgS3CallWhenBootScriptReady (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: %a: AllocateReservedPool(): out of resources\n",
|
"%a: %a: AllocateReservedPool(): out of resources\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
return RETURN_OUT_OF_RESOURCES;
|
return RETURN_OUT_OF_RESOURCES;
|
||||||
}
|
}
|
||||||
@ -215,7 +215,7 @@ QemuFwCfgS3CallWhenBootScriptReady (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: %a: CreateEvent(): %r\n",
|
"%a: %a: CreateEvent(): %r\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
goto FreeDmaAccess;
|
goto FreeDmaAccess;
|
||||||
@ -231,7 +231,7 @@ QemuFwCfgS3CallWhenBootScriptReady (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: %a: RegisterProtocolNotify(): %r\n",
|
"%a: %a: RegisterProtocolNotify(): %r\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
goto CloseEvent;
|
goto CloseEvent;
|
||||||
@ -256,7 +256,7 @@ QemuFwCfgS3CallWhenBootScriptReady (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: %a: SignalEvent(): %r\n",
|
"%a: %a: SignalEvent(): %r\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
goto NullGlobals;
|
goto NullGlobals;
|
||||||
@ -383,7 +383,7 @@ QemuFwCfgS3ScriptWriteBytes (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: %a: EFI_BOOT_SCRIPT_MEM_WRITE_OPCODE: %r\n",
|
"%a: %a: EFI_BOOT_SCRIPT_MEM_WRITE_OPCODE: %r\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
return (RETURN_STATUS)Status;
|
return (RETURN_STATUS)Status;
|
||||||
@ -409,7 +409,7 @@ QemuFwCfgS3ScriptWriteBytes (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: %a: EFI_BOOT_SCRIPT_IO_WRITE_OPCODE: %r\n",
|
"%a: %a: EFI_BOOT_SCRIPT_IO_WRITE_OPCODE: %r\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
return (RETURN_STATUS)Status;
|
return (RETURN_STATUS)Status;
|
||||||
@ -436,7 +436,7 @@ QemuFwCfgS3ScriptWriteBytes (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: %a: EFI_BOOT_SCRIPT_MEM_POLL_OPCODE: %r\n",
|
"%a: %a: EFI_BOOT_SCRIPT_MEM_POLL_OPCODE: %r\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
return (RETURN_STATUS)Status;
|
return (RETURN_STATUS)Status;
|
||||||
@ -544,7 +544,7 @@ QemuFwCfgS3ScriptReadBytes (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: %a: EFI_BOOT_SCRIPT_MEM_WRITE_OPCODE: %r\n",
|
"%a: %a: EFI_BOOT_SCRIPT_MEM_WRITE_OPCODE: %r\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
return (RETURN_STATUS)Status;
|
return (RETURN_STATUS)Status;
|
||||||
@ -570,7 +570,7 @@ QemuFwCfgS3ScriptReadBytes (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: %a: EFI_BOOT_SCRIPT_IO_WRITE_OPCODE: %r\n",
|
"%a: %a: EFI_BOOT_SCRIPT_IO_WRITE_OPCODE: %r\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
return (RETURN_STATUS)Status;
|
return (RETURN_STATUS)Status;
|
||||||
@ -597,7 +597,7 @@ QemuFwCfgS3ScriptReadBytes (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: %a: EFI_BOOT_SCRIPT_MEM_POLL_OPCODE: %r\n",
|
"%a: %a: EFI_BOOT_SCRIPT_MEM_POLL_OPCODE: %r\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
return (RETURN_STATUS)Status;
|
return (RETURN_STATUS)Status;
|
||||||
@ -692,7 +692,7 @@ QemuFwCfgS3ScriptSkipBytes (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: %a: EFI_BOOT_SCRIPT_MEM_WRITE_OPCODE: %r\n",
|
"%a: %a: EFI_BOOT_SCRIPT_MEM_WRITE_OPCODE: %r\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
return (RETURN_STATUS)Status;
|
return (RETURN_STATUS)Status;
|
||||||
@ -718,7 +718,7 @@ QemuFwCfgS3ScriptSkipBytes (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: %a: EFI_BOOT_SCRIPT_IO_WRITE_OPCODE: %r\n",
|
"%a: %a: EFI_BOOT_SCRIPT_IO_WRITE_OPCODE: %r\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
return (RETURN_STATUS)Status;
|
return (RETURN_STATUS)Status;
|
||||||
@ -745,7 +745,7 @@ QemuFwCfgS3ScriptSkipBytes (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: %a: EFI_BOOT_SCRIPT_MEM_POLL_OPCODE: %r\n",
|
"%a: %a: EFI_BOOT_SCRIPT_MEM_POLL_OPCODE: %r\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
return (RETURN_STATUS)Status;
|
return (RETURN_STATUS)Status;
|
||||||
@ -877,7 +877,7 @@ QemuFwCfgS3ScriptCheckValue (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: %a: EFI_BOOT_SCRIPT_MEM_POLL_OPCODE: %r\n",
|
"%a: %a: EFI_BOOT_SCRIPT_MEM_POLL_OPCODE: %r\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
return (RETURN_STATUS)Status;
|
return (RETURN_STATUS)Status;
|
||||||
|
@ -29,11 +29,11 @@ DxeResetSystemLibMicrovmConstructor (
|
|||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
EFI_GCD_MEMORY_SPACE_DESCRIPTOR Descriptor;
|
EFI_GCD_MEMORY_SPACE_DESCRIPTOR Descriptor;
|
||||||
|
|
||||||
DEBUG ((DEBUG_INFO, "%a: start\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a: start\n", __func__));
|
||||||
|
|
||||||
Status = gDS->GetMemorySpaceDescriptor (Address, &Descriptor);
|
Status = gDS->GetMemorySpaceDescriptor (Address, &Descriptor);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((DEBUG_INFO, "%a: GetMemorySpaceDescriptor failed\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a: GetMemorySpaceDescriptor failed\n", __func__));
|
||||||
return RETURN_UNSUPPORTED;
|
return RETURN_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -43,10 +43,10 @@ DxeResetSystemLibMicrovmConstructor (
|
|||||||
Descriptor.Attributes | EFI_MEMORY_RUNTIME
|
Descriptor.Attributes | EFI_MEMORY_RUNTIME
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((DEBUG_INFO, "%a: SetMemorySpaceAttributes failed\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a: SetMemorySpaceAttributes failed\n", __func__));
|
||||||
return RETURN_UNSUPPORTED;
|
return RETURN_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG ((DEBUG_INFO, "%a: done\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a: done\n", __func__));
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
@ -25,9 +25,9 @@ MicrovmGedBase (
|
|||||||
|
|
||||||
if (EfiGoneVirtual ()) {
|
if (EfiGoneVirtual ()) {
|
||||||
EfiConvertPointer (0, &Address);
|
EfiConvertPointer (0, &Address);
|
||||||
DEBUG ((DEBUG_INFO, "%a: virtual -> 0x%x\n", __FUNCTION__, Address));
|
DEBUG ((DEBUG_INFO, "%a: virtual -> 0x%x\n", __func__, Address));
|
||||||
} else {
|
} else {
|
||||||
DEBUG ((DEBUG_INFO, "%a: physical -> 0x%x\n", __FUNCTION__, Address));
|
DEBUG ((DEBUG_INFO, "%a: physical -> 0x%x\n", __func__, Address));
|
||||||
}
|
}
|
||||||
|
|
||||||
return (UINTN)Address;
|
return (UINTN)Address;
|
||||||
@ -40,7 +40,7 @@ MicrovmReset (
|
|||||||
{
|
{
|
||||||
UINTN Address = MicrovmGedBase ();
|
UINTN Address = MicrovmGedBase ();
|
||||||
|
|
||||||
DEBUG ((DEBUG_INFO, "%a: microvm reset via ged\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a: microvm reset via ged\n", __func__));
|
||||||
MmioWrite8 (
|
MmioWrite8 (
|
||||||
Address + MICROVM_ACPI_GED_REG_RESET,
|
Address + MICROVM_ACPI_GED_REG_RESET,
|
||||||
MICROVM_ACPI_GED_RESET_VALUE
|
MICROVM_ACPI_GED_RESET_VALUE
|
||||||
@ -55,7 +55,7 @@ MicrovmShutdown (
|
|||||||
{
|
{
|
||||||
UINTN Address = MicrovmGedBase ();
|
UINTN Address = MicrovmGedBase ();
|
||||||
|
|
||||||
DEBUG ((DEBUG_INFO, "%a: microvm poweroff via ged\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a: microvm poweroff via ged\n", __func__));
|
||||||
MmioWrite8 (
|
MmioWrite8 (
|
||||||
Address + MICROVM_ACPI_GED_REG_SLEEP_CTL,
|
Address + MICROVM_ACPI_GED_REG_SLEEP_CTL,
|
||||||
(1 << 5) /* enable bit */ |
|
(1 << 5) /* enable bit */ |
|
||||||
|
@ -294,7 +294,7 @@ IterateVariablesCallbackSetSystemVariable (
|
|||||||
DEBUG_WARN,
|
DEBUG_WARN,
|
||||||
"%a: setting authenticated variable \"%s\" "
|
"%a: setting authenticated variable \"%s\" "
|
||||||
"failed with EFI_SECURITY_VIOLATION, ignoring\n",
|
"failed with EFI_SECURITY_VIOLATION, ignoring\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
VariableName
|
VariableName
|
||||||
));
|
));
|
||||||
Status = EFI_SUCCESS;
|
Status = EFI_SUCCESS;
|
||||||
@ -303,7 +303,7 @@ IterateVariablesCallbackSetSystemVariable (
|
|||||||
DEBUG_WARN,
|
DEBUG_WARN,
|
||||||
"%a: setting ReadOnly variable \"%s\" "
|
"%a: setting ReadOnly variable \"%s\" "
|
||||||
"failed with EFI_WRITE_PROTECTED, ignoring\n",
|
"failed with EFI_WRITE_PROTECTED, ignoring\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
VariableName
|
VariableName
|
||||||
));
|
));
|
||||||
Status = EFI_SUCCESS;
|
Status = EFI_SUCCESS;
|
||||||
|
@ -98,7 +98,7 @@ DetectSmbiosVersion (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: SMBIOS 3.x DocRev from QEMU: 0x%02x\n",
|
"%a: SMBIOS 3.x DocRev from QEMU: 0x%02x\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
QemuAnchor.V3.DocRev
|
QemuAnchor.V3.DocRev
|
||||||
));
|
));
|
||||||
PcdStatus = PcdSet8S (PcdSmbiosDocRev, QemuAnchor.V3.DocRev);
|
PcdStatus = PcdSet8S (PcdSmbiosDocRev, QemuAnchor.V3.DocRev);
|
||||||
@ -112,7 +112,7 @@ DetectSmbiosVersion (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: SMBIOS version from QEMU: 0x%04x\n",
|
"%a: SMBIOS version from QEMU: 0x%04x\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
SmbiosVersion
|
SmbiosVersion
|
||||||
));
|
));
|
||||||
PcdStatus = PcdSet16S (PcdSmbiosVersion, SmbiosVersion);
|
PcdStatus = PcdSet16S (PcdSmbiosVersion, SmbiosVersion);
|
||||||
|
@ -220,7 +220,7 @@ InitCpuHotEjectData (
|
|||||||
RETURN_ERROR (SafeUintnAdd (Size, sizeof (*mCpuHotEjectData), &Size)) ||
|
RETURN_ERROR (SafeUintnAdd (Size, sizeof (*mCpuHotEjectData), &Size)) ||
|
||||||
RETURN_ERROR (SafeUintnAdd (Size, sizeof (UINT64) - 1, &Size)))
|
RETURN_ERROR (SafeUintnAdd (Size, sizeof (UINT64) - 1, &Size)))
|
||||||
{
|
{
|
||||||
DEBUG ((DEBUG_ERROR, "%a: invalid CPU_HOT_EJECT_DATA\n", __FUNCTION__));
|
DEBUG ((DEBUG_ERROR, "%a: invalid CPU_HOT_EJECT_DATA\n", __func__));
|
||||||
goto Fatal;
|
goto Fatal;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -303,7 +303,7 @@ SmmCpuFeaturesSmmRelocationComplete (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: MemEncryptSevSetPageEncMask(): %r\n",
|
"%a: MemEncryptSevSetPageEncMask(): %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
|
@ -51,7 +51,7 @@ SetCaCerts (
|
|||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a:%a: not touching CA cert list\n",
|
"%a:%a: not touching CA cert list\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -83,7 +83,7 @@ SetCaCerts (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a:%a: failed to delete %g:\"%s\"\n",
|
"%a:%a: failed to delete %g:\"%s\"\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
&gEfiTlsCaCertificateGuid,
|
&gEfiTlsCaCertificateGuid,
|
||||||
EFI_TLS_CA_CERTIFICATE_VARIABLE
|
EFI_TLS_CA_CERTIFICATE_VARIABLE
|
||||||
));
|
));
|
||||||
@ -96,7 +96,7 @@ SetCaCerts (
|
|||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a:%a: applied empty CA cert list\n",
|
"%a:%a: applied empty CA cert list\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -107,7 +107,7 @@ SetCaCerts (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a:%a: failed to allocate HttpsCaCerts\n",
|
"%a:%a: failed to allocate HttpsCaCerts\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -127,7 +127,7 @@ SetCaCerts (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a:%a: failed to set %g:\"%s\": %r\n",
|
"%a:%a: failed to set %g:\"%s\": %r\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
&gEfiTlsCaCertificateGuid,
|
&gEfiTlsCaCertificateGuid,
|
||||||
EFI_TLS_CA_CERTIFICATE_VARIABLE,
|
EFI_TLS_CA_CERTIFICATE_VARIABLE,
|
||||||
Status
|
Status
|
||||||
@ -139,7 +139,7 @@ SetCaCerts (
|
|||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a:%a: stored CA cert list (%Lu byte(s))\n",
|
"%a:%a: stored CA cert list (%Lu byte(s))\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(UINT64)HttpsCaCertsSize
|
(UINT64)HttpsCaCertsSize
|
||||||
));
|
));
|
||||||
|
|
||||||
@ -176,7 +176,7 @@ SetCipherSuites (
|
|||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a:%a: not touching cipher suites\n",
|
"%a:%a: not touching cipher suites\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -204,7 +204,7 @@ SetCipherSuites (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a:%a: failed to delete %g:\"%s\"\n",
|
"%a:%a: failed to delete %g:\"%s\"\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
&gEdkiiHttpTlsCipherListGuid,
|
&gEdkiiHttpTlsCipherListGuid,
|
||||||
EDKII_HTTP_TLS_CIPHER_LIST_VARIABLE
|
EDKII_HTTP_TLS_CIPHER_LIST_VARIABLE
|
||||||
));
|
));
|
||||||
@ -216,7 +216,7 @@ SetCipherSuites (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a:%a: list of cipher suites must not be empty\n",
|
"%a:%a: list of cipher suites must not be empty\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
Status = EFI_INVALID_PARAMETER;
|
Status = EFI_INVALID_PARAMETER;
|
||||||
goto Done;
|
goto Done;
|
||||||
@ -228,7 +228,7 @@ SetCipherSuites (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a:%a: failed to allocate HttpsCiphers\n",
|
"%a:%a: failed to allocate HttpsCiphers\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
Status = EFI_OUT_OF_RESOURCES;
|
Status = EFI_OUT_OF_RESOURCES;
|
||||||
goto Done;
|
goto Done;
|
||||||
@ -249,7 +249,7 @@ SetCipherSuites (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a:%a: failed to set %g:\"%s\"\n",
|
"%a:%a: failed to set %g:\"%s\"\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
&gEdkiiHttpTlsCipherListGuid,
|
&gEdkiiHttpTlsCipherListGuid,
|
||||||
EDKII_HTTP_TLS_CIPHER_LIST_VARIABLE
|
EDKII_HTTP_TLS_CIPHER_LIST_VARIABLE
|
||||||
));
|
));
|
||||||
@ -260,7 +260,7 @@ SetCipherSuites (
|
|||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a:%a: stored list of cipher suites (%Lu byte(s))\n",
|
"%a:%a: stored list of cipher suites (%Lu byte(s))\n",
|
||||||
gEfiCallerBaseName,
|
gEfiCallerBaseName,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(UINT64)HttpsCiphersSize
|
(UINT64)HttpsCiphersSize
|
||||||
));
|
));
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ VirtioMmioInit (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a virtio 0.9.5, id %d\n",
|
"%a virtio 0.9.5, id %d\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Device->VirtioDevice.SubSystemDeviceId
|
Device->VirtioDevice.SubSystemDeviceId
|
||||||
));
|
));
|
||||||
Device->VirtioDevice.Revision = VIRTIO_SPEC_REVISION (0, 9, 5);
|
Device->VirtioDevice.Revision = VIRTIO_SPEC_REVISION (0, 9, 5);
|
||||||
@ -94,7 +94,7 @@ VirtioMmioInit (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a virtio 1.0, id %d\n",
|
"%a virtio 1.0, id %d\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Device->VirtioDevice.SubSystemDeviceId
|
Device->VirtioDevice.SubSystemDeviceId
|
||||||
));
|
));
|
||||||
Device->VirtioDevice.Revision = VIRTIO_SPEC_REVISION (1, 0, 0);
|
Device->VirtioDevice.Revision = VIRTIO_SPEC_REVISION (1, 0, 0);
|
||||||
|
@ -394,7 +394,7 @@ QemuLoadKernelImage (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: QemuLoadLegacyImage(): %r\n",
|
"%a: QemuLoadLegacyImage(): %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
return Status;
|
return Status;
|
||||||
@ -404,7 +404,7 @@ QemuLoadKernelImage (
|
|||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
DEBUG ((DEBUG_ERROR, "%a: LoadImage(): %r\n", __FUNCTION__, Status));
|
DEBUG ((DEBUG_ERROR, "%a: LoadImage(): %r\n", __func__, Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -443,7 +443,7 @@ QemuLoadKernelImage (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: kernel command line is not NUL-terminated\n",
|
"%a: kernel command line is not NUL-terminated\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
Status = EFI_PROTOCOL_ERROR;
|
Status = EFI_PROTOCOL_ERROR;
|
||||||
goto FreeCommandLine;
|
goto FreeCommandLine;
|
||||||
@ -492,7 +492,7 @@ QemuLoadKernelImage (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: command line: \"%s\"\n",
|
"%a: command line: \"%s\"\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(CHAR16 *)KernelLoadedImage->LoadOptions
|
(CHAR16 *)KernelLoadedImage->LoadOptions
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
@ -91,7 +91,7 @@ XenIoMmioInstall (
|
|||||||
&mXenBusRootDevicePathTemplate
|
&mXenBusRootDevicePathTemplate
|
||||||
);
|
);
|
||||||
if (!XenBusDevicePath) {
|
if (!XenBusDevicePath) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: Out of memory\n", __FUNCTION__));
|
DEBUG ((DEBUG_ERROR, "%a: Out of memory\n", __func__));
|
||||||
Status = EFI_OUT_OF_RESOURCES;
|
Status = EFI_OUT_OF_RESOURCES;
|
||||||
goto FreeXenIo;
|
goto FreeXenIo;
|
||||||
}
|
}
|
||||||
@ -115,7 +115,7 @@ XenIoMmioInstall (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Failed to install the EFI_DEVICE_PATH and "
|
"%a: Failed to install the EFI_DEVICE_PATH and "
|
||||||
"XENIO_PROTOCOL protocols on handle %p (Status == %r)\n",
|
"XENIO_PROTOCOL protocols on handle %p (Status == %r)\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
OutHandle,
|
OutHandle,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
|
@ -204,7 +204,7 @@ CacheInitrdFile (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_WARN,
|
DEBUG_WARN,
|
||||||
"%a: failed to read initrd file - %r 0x%lx 0x%lx\n",
|
"%a: failed to read initrd file - %r 0x%lx 0x%lx\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status,
|
Status,
|
||||||
(UINT64)ReadSize,
|
(UINT64)ReadSize,
|
||||||
FileSize
|
FileSize
|
||||||
|
@ -512,7 +512,7 @@ Error:
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: dstat: %02X, sist0: %02X, sist1: %02X\n",
|
"%a: dstat: %02X, sist0: %02X, sist1: %02X\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
DStat,
|
DStat,
|
||||||
SIst0,
|
SIst0,
|
||||||
SIst1
|
SIst1
|
||||||
@ -800,7 +800,7 @@ LsiScsiExitBoot (
|
|||||||
LSI_SCSI_DEV *Dev;
|
LSI_SCSI_DEV *Dev;
|
||||||
|
|
||||||
Dev = Context;
|
Dev = Context;
|
||||||
DEBUG ((DEBUG_VERBOSE, "%a: Context=0x%p\n", __FUNCTION__, Context));
|
DEBUG ((DEBUG_VERBOSE, "%a: Context=0x%p\n", __func__, Context));
|
||||||
LsiScsiReset (Dev);
|
LsiScsiReset (Dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -278,7 +278,7 @@ ReportHostAdapterError (
|
|||||||
OUT EFI_EXT_SCSI_PASS_THRU_SCSI_REQUEST_PACKET *Packet
|
OUT EFI_EXT_SCSI_PASS_THRU_SCSI_REQUEST_PACKET *Packet
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
DEBUG ((DEBUG_ERROR, "%a: fatal error in scsi request\n", __FUNCTION__));
|
DEBUG ((DEBUG_ERROR, "%a: fatal error in scsi request\n", __func__));
|
||||||
Packet->InTransferLength = 0;
|
Packet->InTransferLength = 0;
|
||||||
Packet->OutTransferLength = 0;
|
Packet->OutTransferLength = 0;
|
||||||
Packet->SenseDataLength = 0;
|
Packet->SenseDataLength = 0;
|
||||||
@ -509,7 +509,7 @@ MptScsiHandleReply (
|
|||||||
Packet->HostAdapterStatus = EFI_EXT_SCSI_STATUS_HOST_ADAPTER_OK;
|
Packet->HostAdapterStatus = EFI_EXT_SCSI_STATUS_HOST_ADAPTER_OK;
|
||||||
Packet->TargetStatus = EFI_EXT_SCSI_STATUS_TARGET_GOOD;
|
Packet->TargetStatus = EFI_EXT_SCSI_STATUS_TARGET_GOOD;
|
||||||
} else if ((Reply & BIT31) != 0) {
|
} else if ((Reply & BIT31) != 0) {
|
||||||
DEBUG ((DEBUG_INFO, "%a: Full reply returned\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a: Full reply returned\n", __func__));
|
||||||
//
|
//
|
||||||
// When reply MSB is set, we got a full reply. Since we submitted only one
|
// When reply MSB is set, we got a full reply. Since we submitted only one
|
||||||
// reply frame, we know it's IoReply.
|
// reply frame, we know it's IoReply.
|
||||||
@ -549,7 +549,7 @@ MptScsiHandleReply (
|
|||||||
return EFI_DEVICE_ERROR;
|
return EFI_DEVICE_ERROR;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: unexpected reply (%x)\n", __FUNCTION__, Reply));
|
DEBUG ((DEBUG_ERROR, "%a: unexpected reply (%x)\n", __func__, Reply));
|
||||||
return ReportHostAdapterError (Packet);
|
return ReportHostAdapterError (Packet);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -785,7 +785,7 @@ MptScsiExitBoot (
|
|||||||
MPT_SCSI_DEV *Dev;
|
MPT_SCSI_DEV *Dev;
|
||||||
|
|
||||||
Dev = Context;
|
Dev = Context;
|
||||||
DEBUG ((DEBUG_VERBOSE, "%a: Context=0x%p\n", __FUNCTION__, Context));
|
DEBUG ((DEBUG_VERBOSE, "%a: Context=0x%p\n", __func__, Context));
|
||||||
MptScsiReset (Dev);
|
MptScsiReset (Dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -940,7 +940,7 @@ MptScsiControllerStart (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_WARN,
|
DEBUG_WARN,
|
||||||
"%a: failed to enable 64-bit DMA addresses\n",
|
"%a: failed to enable 64-bit DMA addresses\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -572,7 +572,7 @@ GetResourcePadding (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: Address=%02x:%02x.%x DevicePath=%s\n",
|
"%a: Address=%02x:%02x.%x DevicePath=%s\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Address->Bus,
|
Address->Bus,
|
||||||
Address->Device,
|
Address->Device,
|
||||||
Address->Function,
|
Address->Function,
|
||||||
@ -613,11 +613,11 @@ GetResourcePadding (
|
|||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: BusNumbers=0x%x Io=0x%Lx NonPrefetchable32BitMmio=0x%x\n"
|
"%a: BusNumbers=0x%x Io=0x%Lx NonPrefetchable32BitMmio=0x%x\n"
|
||||||
"%a: Prefetchable32BitMmio=0x%x Prefetchable64BitMmio=0x%Lx\n",
|
"%a: Prefetchable32BitMmio=0x%x Prefetchable64BitMmio=0x%Lx\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
ReservationHint.BusNumbers,
|
ReservationHint.BusNumbers,
|
||||||
ReservationHint.Io,
|
ReservationHint.Io,
|
||||||
ReservationHint.NonPrefetchable32BitMmio,
|
ReservationHint.NonPrefetchable32BitMmio,
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
ReservationHint.Prefetchable32BitMmio,
|
ReservationHint.Prefetchable32BitMmio,
|
||||||
ReservationHint.Prefetchable64BitMmio
|
ReservationHint.Prefetchable64BitMmio
|
||||||
));
|
));
|
||||||
|
@ -239,7 +239,7 @@ ExtractConfig (
|
|||||||
UINTN Size;
|
UINTN Size;
|
||||||
BOOLEAN AllocatedRequest;
|
BOOLEAN AllocatedRequest;
|
||||||
|
|
||||||
DEBUG ((DEBUG_VERBOSE, "%a: Request=\"%s\"\n", __FUNCTION__, Request));
|
DEBUG ((DEBUG_VERBOSE, "%a: Request=\"%s\"\n", __func__, Request));
|
||||||
|
|
||||||
if ((Progress == NULL) || (Results == NULL)) {
|
if ((Progress == NULL) || (Results == NULL)) {
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
@ -321,12 +321,12 @@ ExtractConfig (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: BlockToConfig(): %r, Progress=\"%s\"\n",
|
"%a: BlockToConfig(): %r, Progress=\"%s\"\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status,
|
Status,
|
||||||
(Status == EFI_DEVICE_ERROR) ? NULL : *Progress
|
(Status == EFI_DEVICE_ERROR) ? NULL : *Progress
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
DEBUG ((DEBUG_VERBOSE, "%a: Results=\"%s\"\n", __FUNCTION__, *Results));
|
DEBUG ((DEBUG_VERBOSE, "%a: Results=\"%s\"\n", __func__, *Results));
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -431,7 +431,7 @@ RouteConfig (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: Configuration=\"%s\"\n",
|
"%a: Configuration=\"%s\"\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Configuration
|
Configuration
|
||||||
));
|
));
|
||||||
|
|
||||||
@ -481,7 +481,7 @@ RouteConfig (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: ConfigToBlock(): %r, Progress=\"%s\"\n",
|
"%a: ConfigToBlock(): %r, Progress=\"%s\"\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status,
|
Status,
|
||||||
(Status == EFI_BUFFER_TOO_SMALL) ? NULL : *Progress
|
(Status == EFI_BUFFER_TOO_SMALL) ? NULL : *Progress
|
||||||
));
|
));
|
||||||
@ -514,7 +514,7 @@ Callback (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: Action=0x%Lx QuestionId=%d Type=%d\n",
|
"%a: Action=0x%Lx QuestionId=%d Type=%d\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(UINT64)Action,
|
(UINT64)Action,
|
||||||
QuestionId,
|
QuestionId,
|
||||||
Type
|
Type
|
||||||
@ -835,7 +835,7 @@ ExecutePlatformConfig (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
(Status == EFI_NOT_FOUND) ? DEBUG_VERBOSE : DEBUG_ERROR,
|
(Status == EFI_NOT_FOUND) ? DEBUG_VERBOSE : DEBUG_ERROR,
|
||||||
"%a: failed to load platform config: %r\n",
|
"%a: failed to load platform config: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
return Status;
|
return Status;
|
||||||
|
@ -59,7 +59,7 @@ ClearCacheOnMpServicesAvailable (
|
|||||||
EFI_PEI_MP_SERVICES_PPI *MpServices;
|
EFI_PEI_MP_SERVICES_PPI *MpServices;
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
|
||||||
DEBUG ((DEBUG_INFO, "%a: %a\n", gEfiCallerBaseName, __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a: %a\n", gEfiCallerBaseName, __func__));
|
||||||
|
|
||||||
//
|
//
|
||||||
// Clear cache on all the APs in parallel.
|
// Clear cache on all the APs in parallel.
|
||||||
@ -74,7 +74,7 @@ ClearCacheOnMpServicesAvailable (
|
|||||||
NULL // ProcedureArgument
|
NULL // ProcedureArgument
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status) && (Status != EFI_NOT_STARTED)) {
|
if (EFI_ERROR (Status) && (Status != EFI_NOT_STARTED)) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: StartupAllAps(): %r\n", __FUNCTION__, Status));
|
DEBUG ((DEBUG_ERROR, "%a: StartupAllAps(): %r\n", __func__, Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -108,7 +108,7 @@ InstallClearCacheCallback (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: failed to set up MP Services callback: %r\n",
|
"%a: failed to set up MP Services callback: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
@ -85,7 +85,7 @@ OnMpServicesAvailable (
|
|||||||
|
|
||||||
PlatformInfoHob = (EFI_HOB_PLATFORM_INFO *)GET_GUID_HOB_DATA (GuidHob);
|
PlatformInfoHob = (EFI_HOB_PLATFORM_INFO *)GET_GUID_HOB_DATA (GuidHob);
|
||||||
|
|
||||||
DEBUG ((DEBUG_VERBOSE, "%a: %a\n", gEfiCallerBaseName, __FUNCTION__));
|
DEBUG ((DEBUG_VERBOSE, "%a: %a\n", gEfiCallerBaseName, __func__));
|
||||||
|
|
||||||
//
|
//
|
||||||
// Write the MSR on all the APs in parallel.
|
// Write the MSR on all the APs in parallel.
|
||||||
@ -100,7 +100,7 @@ OnMpServicesAvailable (
|
|||||||
PlatformInfoHob // ProcedureArgument
|
PlatformInfoHob // ProcedureArgument
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status) && (Status != EFI_NOT_STARTED)) {
|
if (EFI_ERROR (Status) && (Status != EFI_NOT_STARTED)) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: StartupAllAps(): %r\n", __FUNCTION__, Status));
|
DEBUG ((DEBUG_ERROR, "%a: StartupAllAps(): %r\n", __func__, Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -154,7 +154,7 @@ InstallFeatureControlCallback (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: failed to set up MP Services callback: %r\n",
|
"%a: failed to set up MP Services callback: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
@ -75,7 +75,7 @@ Q35TsegMbytesInitialization (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: QEMU offers an extended TSEG (%d MB)\n",
|
"%a: QEMU offers an extended TSEG (%d MB)\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
ExtendedTsegMbytes
|
ExtendedTsegMbytes
|
||||||
));
|
));
|
||||||
PcdStatus = PcdSet16S (PcdQ35TsegMbytes, ExtendedTsegMbytes);
|
PcdStatus = PcdSet16S (PcdQ35TsegMbytes, ExtendedTsegMbytes);
|
||||||
@ -97,7 +97,7 @@ Q35SmramAtDefaultSmbaseInitialization (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: SMRAM at default SMBASE not checked due to CSM\n",
|
"%a: SMRAM at default SMBASE not checked due to CSM\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
UINTN CtlReg;
|
UINTN CtlReg;
|
||||||
@ -111,7 +111,7 @@ Q35SmramAtDefaultSmbaseInitialization (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: SMRAM at default SMBASE %a\n",
|
"%a: SMRAM at default SMBASE %a\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
PlatformInfoHob->Q35SmramAtDefaultSmbase ? "found" : "not found"
|
PlatformInfoHob->Q35SmramAtDefaultSmbase ? "found" : "not found"
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
@ -152,7 +152,7 @@ AddressWidthInitialization (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: disabling 64-bit PCI host aperture\n",
|
"%a: disabling 64-bit PCI host aperture\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
PcdStatus = PcdSet64S (PcdPciMmio64Size, 0);
|
PcdStatus = PcdSet64S (PcdPciMmio64Size, 0);
|
||||||
ASSERT_RETURN_ERROR (PcdStatus);
|
ASSERT_RETURN_ERROR (PcdStatus);
|
||||||
@ -175,7 +175,7 @@ AddressWidthInitialization (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: Pci64Base=0x%Lx Pci64Size=0x%Lx\n",
|
"%a: Pci64Base=0x%Lx Pci64Size=0x%Lx\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
PlatformInfoHob->PcdPciMmio64Base,
|
PlatformInfoHob->PcdPciMmio64Base,
|
||||||
PlatformInfoHob->PcdPciMmio64Size
|
PlatformInfoHob->PcdPciMmio64Size
|
||||||
));
|
));
|
||||||
@ -307,7 +307,7 @@ PublishPeiMemory (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: PhysMemAddressWidth=%d PeiMemoryCap=%u KB\n",
|
"%a: PhysMemAddressWidth=%d PeiMemoryCap=%u KB\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
PlatformInfoHob->PhysMemAddressWidth,
|
PlatformInfoHob->PhysMemAddressWidth,
|
||||||
PeiMemoryCap >> 10
|
PeiMemoryCap >> 10
|
||||||
));
|
));
|
||||||
|
@ -100,7 +100,7 @@ RefreshMemTypeInfo (
|
|||||||
// If the UEFI variable couldn't be read for some other reason, we
|
// If the UEFI variable couldn't be read for some other reason, we
|
||||||
// similarly can't use it for udpating mMemoryTypeInformation.
|
// similarly can't use it for udpating mMemoryTypeInformation.
|
||||||
//
|
//
|
||||||
DEBUG ((DEBUG_ERROR, "%a: GetVariable(): %r\n", __FUNCTION__, Status));
|
DEBUG ((DEBUG_ERROR, "%a: GetVariable(): %r\n", __func__, Status));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -111,7 +111,7 @@ RefreshMemTypeInfo (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: invalid UEFI variable size %Lu\n",
|
"%a: invalid UEFI variable size %Lu\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(UINT64)DataSize
|
(UINT64)DataSize
|
||||||
));
|
));
|
||||||
return;
|
return;
|
||||||
@ -151,7 +151,7 @@ RefreshMemTypeInfo (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: Type 0x%x: NumberOfPages 0x%x -> 0x%x\n",
|
"%a: Type 0x%x: NumberOfPages 0x%x -> 0x%x\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
HobRecord->Type,
|
HobRecord->Type,
|
||||||
HobRecord->NumberOfPages,
|
HobRecord->NumberOfPages,
|
||||||
VariableRecord->NumberOfPages
|
VariableRecord->NumberOfPages
|
||||||
@ -183,7 +183,7 @@ OnReadOnlyVariable2Available (
|
|||||||
IN VOID *Ppi
|
IN VOID *Ppi
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
DEBUG ((DEBUG_VERBOSE, "%a\n", __FUNCTION__));
|
DEBUG ((DEBUG_VERBOSE, "%a\n", __func__));
|
||||||
|
|
||||||
RefreshMemTypeInfo (Ppi);
|
RefreshMemTypeInfo (Ppi);
|
||||||
BuildMemTypeInfoHob ();
|
BuildMemTypeInfoHob ();
|
||||||
@ -222,7 +222,7 @@ MemTypeInfoInitialization (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: failed to set up R/O Variable 2 callback: %r\n",
|
"%a: failed to set up R/O Variable 2 callback: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
|
@ -114,7 +114,7 @@ MicrovmInitialization (
|
|||||||
|
|
||||||
Status = QemuFwCfgFindFile ("etc/fdt", &FdtItem, &FdtSize);
|
Status = QemuFwCfgFindFile ("etc/fdt", &FdtItem, &FdtSize);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((DEBUG_INFO, "%a: no etc/fdt found in fw_cfg, using dummy\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a: no etc/fdt found in fw_cfg, using dummy\n", __func__));
|
||||||
FdtItem = 0;
|
FdtItem = 0;
|
||||||
FdtSize = sizeof (EmptyFdt);
|
FdtSize = sizeof (EmptyFdt);
|
||||||
}
|
}
|
||||||
@ -122,7 +122,7 @@ MicrovmInitialization (
|
|||||||
FdtPages = EFI_SIZE_TO_PAGES (FdtSize);
|
FdtPages = EFI_SIZE_TO_PAGES (FdtSize);
|
||||||
NewBase = AllocatePages (FdtPages);
|
NewBase = AllocatePages (FdtPages);
|
||||||
if (NewBase == NULL) {
|
if (NewBase == NULL) {
|
||||||
DEBUG ((DEBUG_INFO, "%a: AllocatePages failed\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a: AllocatePages failed\n", __func__));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -135,14 +135,14 @@ MicrovmInitialization (
|
|||||||
|
|
||||||
FdtHobData = BuildGuidHob (&gFdtHobGuid, sizeof (*FdtHobData));
|
FdtHobData = BuildGuidHob (&gFdtHobGuid, sizeof (*FdtHobData));
|
||||||
if (FdtHobData == NULL) {
|
if (FdtHobData == NULL) {
|
||||||
DEBUG ((DEBUG_INFO, "%a: BuildGuidHob failed\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a: BuildGuidHob failed\n", __func__));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: fdt at 0x%x (size %d)\n",
|
"%a: fdt at 0x%x (size %d)\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
NewBase,
|
NewBase,
|
||||||
FdtSize
|
FdtSize
|
||||||
));
|
));
|
||||||
@ -158,7 +158,7 @@ MiscInitializationForMicrovm (
|
|||||||
|
|
||||||
ASSERT (PlatformInfoHob->HostBridgeDevId == 0xffff);
|
ASSERT (PlatformInfoHob->HostBridgeDevId == 0xffff);
|
||||||
|
|
||||||
DEBUG ((DEBUG_INFO, "%a: microvm\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a: microvm\n", __func__));
|
||||||
//
|
//
|
||||||
// Disable A20 Mask
|
// Disable A20 Mask
|
||||||
//
|
//
|
||||||
@ -240,17 +240,17 @@ S3Verification (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: S3Resume2Pei doesn't support X64 PEI + SMM yet.\n",
|
"%a: S3Resume2Pei doesn't support X64 PEI + SMM yet.\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Please disable S3 on the QEMU command line (see the README),\n",
|
"%a: Please disable S3 on the QEMU command line (see the README),\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: or build OVMF with \"OvmfPkgIa32X64.dsc\".\n",
|
"%a: or build OVMF with \"OvmfPkgIa32X64.dsc\".\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
CpuDeadLoop ();
|
CpuDeadLoop ();
|
||||||
@ -273,7 +273,7 @@ Q35BoardVerification (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: no TSEG (SMRAM) on host bridge DID=0x%04x; "
|
"%a: no TSEG (SMRAM) on host bridge DID=0x%04x; "
|
||||||
"only DID=0x%04x (Q35) is supported\n",
|
"only DID=0x%04x (Q35) is supported\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
PlatformInfoHob->HostBridgeDevId,
|
PlatformInfoHob->HostBridgeDevId,
|
||||||
INTEL_Q35_MCH_DEVICE_ID
|
INTEL_Q35_MCH_DEVICE_ID
|
||||||
));
|
));
|
||||||
|
@ -904,7 +904,7 @@ PvScsiSetPciAttributes (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_WARN,
|
DEBUG_WARN,
|
||||||
"%a: failed to enable 64-bit DMA addresses\n",
|
"%a: failed to enable 64-bit DMA addresses\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1279,7 +1279,7 @@ PvScsiExitBoot (
|
|||||||
PVSCSI_DEV *Dev;
|
PVSCSI_DEV *Dev;
|
||||||
|
|
||||||
Dev = Context;
|
Dev = Context;
|
||||||
DEBUG ((DEBUG_VERBOSE, "%a: Context=0x%p\n", __FUNCTION__, Context));
|
DEBUG ((DEBUG_VERBOSE, "%a: Context=0x%p\n", __func__, Context));
|
||||||
|
|
||||||
//
|
//
|
||||||
// Reset the device to stop device usage of the rings.
|
// Reset the device to stop device usage of the rings.
|
||||||
|
@ -968,7 +968,7 @@ FetchBlob (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: failed to allocate %Ld bytes for \"%s\"\n",
|
"%a: failed to allocate %Ld bytes for \"%s\"\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(INT64)Blob->Size,
|
(INT64)Blob->Size,
|
||||||
Blob->Name
|
Blob->Name
|
||||||
));
|
));
|
||||||
@ -978,7 +978,7 @@ FetchBlob (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: loading %Ld bytes for \"%s\"\n",
|
"%a: loading %Ld bytes for \"%s\"\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(INT64)Blob->Size,
|
(INT64)Blob->Size,
|
||||||
Blob->Name
|
Blob->Name
|
||||||
));
|
));
|
||||||
@ -1001,7 +1001,7 @@ FetchBlob (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: %Ld bytes remaining for \"%s\" (%d)\n",
|
"%a: %Ld bytes remaining for \"%s\" (%d)\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(INT64)Left,
|
(INT64)Left,
|
||||||
Blob->Name,
|
Blob->Name,
|
||||||
(INT32)Idx
|
(INT32)Idx
|
||||||
@ -1051,7 +1051,7 @@ QemuKernelLoaderFsDxeEntrypoint (
|
|||||||
|
|
||||||
Status = gRT->GetTime (&mInitTime, NULL /* Capabilities */);
|
Status = gRT->GetTime (&mInitTime, NULL /* Capabilities */);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: GetTime(): %r\n", __FUNCTION__, Status));
|
DEBUG ((DEBUG_ERROR, "%a: GetTime(): %r\n", __func__, Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1101,7 +1101,7 @@ QemuKernelLoaderFsDxeEntrypoint (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: InstallMultipleProtocolInterfaces(): %r\n",
|
"%a: InstallMultipleProtocolInterfaces(): %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
goto FreeBlobs;
|
goto FreeBlobs;
|
||||||
@ -1121,7 +1121,7 @@ QemuKernelLoaderFsDxeEntrypoint (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: InstallMultipleProtocolInterfaces(): %r\n",
|
"%a: InstallMultipleProtocolInterfaces(): %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
goto UninstallFileSystemHandle;
|
goto UninstallFileSystemHandle;
|
||||||
|
@ -189,7 +189,7 @@ QemuRamfbGraphicsOutputSetMode (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_WARN,
|
DEBUG_WARN,
|
||||||
"%a: clearing the screen failed: %r\n",
|
"%a: clearing the screen failed: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ QemuVideoCompleteModeInfo (
|
|||||||
Info->PixelInformation.BlueMask = 0;
|
Info->PixelInformation.BlueMask = 0;
|
||||||
Info->PixelInformation.ReservedMask = 0;
|
Info->PixelInformation.ReservedMask = 0;
|
||||||
} else {
|
} else {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: Invalid ColorDepth %u", __FUNCTION__, ModeData->ColorDepth));
|
DEBUG ((DEBUG_ERROR, "%a: Invalid ColorDepth %u", __func__, ModeData->ColorDepth));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -310,7 +310,7 @@ QemuVideoBochsEdid (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: mmio read failed\n",
|
"%a: mmio read failed\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -321,7 +321,7 @@ QemuVideoBochsEdid (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: magic check failed\n",
|
"%a: magic check failed\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -329,7 +329,7 @@ QemuVideoBochsEdid (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: blob found (extensions: %d)\n",
|
"%a: blob found (extensions: %d)\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Private->Edid[126]
|
Private->Edid[126]
|
||||||
));
|
));
|
||||||
|
|
||||||
@ -339,7 +339,7 @@ QemuVideoBochsEdid (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: no detailed timing descriptor\n",
|
"%a: no detailed timing descriptor\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -349,7 +349,7 @@ QemuVideoBochsEdid (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: default resolution: %dx%d\n",
|
"%a: default resolution: %dx%d\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
*XRes,
|
*XRes,
|
||||||
*YRes
|
*YRes
|
||||||
));
|
));
|
||||||
@ -436,7 +436,7 @@ QemuVideoBochsModeSetup (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: can't read size of drawable buffer from QXL "
|
"%a: can't read size of drawable buffer from QXL "
|
||||||
"ROM\n",
|
"ROM\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
return EFI_NOT_FOUND;
|
return EFI_NOT_FOUND;
|
||||||
}
|
}
|
||||||
@ -448,7 +448,7 @@ QemuVideoBochsModeSetup (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: AvailableFbSize=0x%x\n",
|
"%a: AvailableFbSize=0x%x\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
AvailableFbSize
|
AvailableFbSize
|
||||||
));
|
));
|
||||||
|
|
||||||
|
@ -73,12 +73,12 @@ InstallVbeShim (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_WARN,
|
DEBUG_WARN,
|
||||||
"%a: page 0 protected, not installing VBE shim\n",
|
"%a: page 0 protected, not installing VBE shim\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_WARN,
|
DEBUG_WARN,
|
||||||
"%a: page 0 protection prevents Windows 7 from booting anyway\n",
|
"%a: page 0 protection prevents Windows 7 from booting anyway\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -117,7 +117,7 @@ InstallVbeShim (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: Video BIOS handler found at %04x:%04x\n",
|
"%a: Video BIOS handler found at %04x:%04x\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Int0x10->Segment,
|
Int0x10->Segment,
|
||||||
Int0x10->Offset
|
Int0x10->Offset
|
||||||
));
|
));
|
||||||
@ -131,7 +131,7 @@ InstallVbeShim (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: failed to allocate page at zero: %r\n",
|
"%a: failed to allocate page at zero: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Segment0AllocationStatus
|
Segment0AllocationStatus
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
@ -162,7 +162,7 @@ InstallVbeShim (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: unknown host bridge device ID: 0x%04x\n",
|
"%a: unknown host bridge device ID: 0x%04x\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
HostBridgeDevId
|
HostBridgeDevId
|
||||||
));
|
));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
@ -324,5 +324,5 @@ InstallVbeShim (
|
|||||||
Int0x10->Segment = (UINT16)((UINT32)SegmentC >> 4);
|
Int0x10->Segment = (UINT16)((UINT32)SegmentC >> 4);
|
||||||
Int0x10->Offset = (UINT16)((UINTN)(VbeModeInfo + 1) - SegmentC);
|
Int0x10->Offset = (UINT16)((UINTN)(VbeModeInfo + 1) - SegmentC);
|
||||||
|
|
||||||
DEBUG ((DEBUG_INFO, "%a: VBE shim installed\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a: VBE shim installed\n", __func__));
|
||||||
}
|
}
|
||||||
|
@ -193,7 +193,7 @@ FilterAndProcess (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: %g: %r\n",
|
"%a: %g: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
ProtocolGuid,
|
ProtocolGuid,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
@ -264,7 +264,7 @@ IsPciDisplay (
|
|||||||
&Pci
|
&Pci
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: %s: %r\n", __FUNCTION__, ReportText, Status));
|
DEBUG ((DEBUG_ERROR, "%a: %s: %r\n", __func__, ReportText, Status));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -413,7 +413,7 @@ IsVirtioPciRng (
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
PciError:
|
PciError:
|
||||||
DEBUG ((DEBUG_ERROR, "%a: %s: %r\n", __FUNCTION__, ReportText, Status));
|
DEBUG ((DEBUG_ERROR, "%a: %s: %r\n", __func__, ReportText, Status));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -440,7 +440,7 @@ Connect (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
EFI_ERROR (Status) ? DEBUG_ERROR : DEBUG_VERBOSE,
|
EFI_ERROR (Status) ? DEBUG_ERROR : DEBUG_VERBOSE,
|
||||||
"%a: %s: %r\n",
|
"%a: %s: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
ReportText,
|
ReportText,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
@ -466,7 +466,7 @@ AddOutput (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: %s: handle %p: device path not found\n",
|
"%a: %s: handle %p: device path not found\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
ReportText,
|
ReportText,
|
||||||
Handle
|
Handle
|
||||||
));
|
));
|
||||||
@ -478,7 +478,7 @@ AddOutput (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: %s: adding to ConOut: %r\n",
|
"%a: %s: adding to ConOut: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
ReportText,
|
ReportText,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
@ -490,7 +490,7 @@ AddOutput (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: %s: adding to ErrOut: %r\n",
|
"%a: %s: adding to ErrOut: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
ReportText,
|
ReportText,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
@ -500,7 +500,7 @@ AddOutput (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: %s: added to ConOut and ErrOut\n",
|
"%a: %s: added to ConOut and ErrOut\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
ReportText
|
ReportText
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
@ -701,7 +701,7 @@ RemoveStaleFvFileOptions (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
EFI_ERROR (Status) ? DEBUG_WARN : DEBUG_VERBOSE,
|
EFI_ERROR (Status) ? DEBUG_WARN : DEBUG_VERBOSE,
|
||||||
"%a: removing stale Boot#%04x %s: %r\n",
|
"%a: removing stale Boot#%04x %s: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(UINT32)BootOptions[Index].OptionNumber,
|
(UINT32)BootOptions[Index].OptionNumber,
|
||||||
DevicePathString == NULL ? L"<unavailable>" : DevicePathString,
|
DevicePathString == NULL ? L"<unavailable>" : DevicePathString,
|
||||||
Status
|
Status
|
||||||
@ -879,7 +879,7 @@ PlatformBootManagerBeforeConsole (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
EFI_ERROR (Status) ? DEBUG_ERROR : DEBUG_VERBOSE,
|
EFI_ERROR (Status) ? DEBUG_ERROR : DEBUG_VERBOSE,
|
||||||
"%a: SetVariable(%s, %u): %r\n",
|
"%a: SetVariable(%s, %u): %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
EFI_TIME_OUT_VARIABLE_NAME,
|
EFI_TIME_OUT_VARIABLE_NAME,
|
||||||
FrontPageTimeout,
|
FrontPageTimeout,
|
||||||
Status
|
Status
|
||||||
|
@ -66,7 +66,7 @@ TryRunningQemuKernel (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: QemuStartKernelImage(): %r\n",
|
"%a: QemuStartKernelImage(): %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@ PrePeiGetHobList (
|
|||||||
GetFirmwareContextPointer (&FirmwareContext);
|
GetFirmwareContextPointer (&FirmwareContext);
|
||||||
|
|
||||||
if (FirmwareContext == NULL) {
|
if (FirmwareContext == NULL) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: Firmware Context is NULL\n", __FUNCTION__));
|
DEBUG ((DEBUG_ERROR, "%a: Firmware Context is NULL\n", __func__));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ PrePeiSetHobList (
|
|||||||
GetFirmwareContextPointer (&FirmwareContext);
|
GetFirmwareContextPointer (&FirmwareContext);
|
||||||
|
|
||||||
if (FirmwareContext == NULL) {
|
if (FirmwareContext == NULL) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: Firmware Context is NULL\n", __FUNCTION__));
|
DEBUG ((DEBUG_ERROR, "%a: Firmware Context is NULL\n", __func__));
|
||||||
return EFI_NOT_READY;
|
return EFI_NOT_READY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@ InitMmu (
|
|||||||
// Set supervisor translation mode to Bare mode
|
// Set supervisor translation mode to Bare mode
|
||||||
//
|
//
|
||||||
RiscVSetSupervisorAddressTranslationRegister ((UINT64)SATP_MODE_OFF << 60);
|
RiscVSetSupervisorAddressTranslationRegister ((UINT64)SATP_MODE_OFF << 60);
|
||||||
DEBUG ((DEBUG_INFO, "%a: Set Supervisor address mode to bare-metal mode.\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a: Set Supervisor address mode to bare-metal mode.\n", __func__));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -276,13 +276,13 @@ MemoryPeimInitialization (
|
|||||||
GetFirmwareContextPointer (&FirmwareContext);
|
GetFirmwareContextPointer (&FirmwareContext);
|
||||||
|
|
||||||
if (FirmwareContext == NULL) {
|
if (FirmwareContext == NULL) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: Firmware Context is NULL\n", __FUNCTION__));
|
DEBUG ((DEBUG_ERROR, "%a: Firmware Context is NULL\n", __func__));
|
||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
FdtPointer = (VOID *)FirmwareContext->FlattenedDeviceTree;
|
FdtPointer = (VOID *)FirmwareContext->FlattenedDeviceTree;
|
||||||
if (FdtPointer == NULL) {
|
if (FdtPointer == NULL) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: Invalid FDT pointer\n", __FUNCTION__));
|
DEBUG ((DEBUG_ERROR, "%a: Invalid FDT pointer\n", __func__));
|
||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -306,7 +306,7 @@ MemoryPeimInitialization (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: System RAM @ 0x%lx - 0x%lx\n",
|
"%a: System RAM @ 0x%lx - 0x%lx\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
CurBase,
|
CurBase,
|
||||||
CurBase + CurSize - 1
|
CurBase + CurSize - 1
|
||||||
));
|
));
|
||||||
@ -319,7 +319,7 @@ MemoryPeimInitialization (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Failed to parse FDT memory node\n",
|
"%a: Failed to parse FDT memory node\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -43,20 +43,20 @@ PlatformPeimInitialization (
|
|||||||
GetFirmwareContextPointer (&FirmwareContext);
|
GetFirmwareContextPointer (&FirmwareContext);
|
||||||
|
|
||||||
if (FirmwareContext == NULL) {
|
if (FirmwareContext == NULL) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: Firmware Context is NULL\n", __FUNCTION__));
|
DEBUG ((DEBUG_ERROR, "%a: Firmware Context is NULL\n", __func__));
|
||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
FdtPointer = (VOID *)FirmwareContext->FlattenedDeviceTree;
|
FdtPointer = (VOID *)FirmwareContext->FlattenedDeviceTree;
|
||||||
if (FdtPointer == NULL) {
|
if (FdtPointer == NULL) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: Invalid FDT pointer\n", __FUNCTION__));
|
DEBUG ((DEBUG_ERROR, "%a: Invalid FDT pointer\n", __func__));
|
||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG ((DEBUG_INFO, "%a: Build FDT HOB - FDT at address: 0x%x \n", __FUNCTION__, FdtPointer));
|
DEBUG ((DEBUG_INFO, "%a: Build FDT HOB - FDT at address: 0x%x \n", __func__, FdtPointer));
|
||||||
Base = FdtPointer;
|
Base = FdtPointer;
|
||||||
if (fdt_check_header (Base) != 0) {
|
if (fdt_check_header (Base) != 0) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: Corrupted DTB\n", __FUNCTION__));
|
DEBUG ((DEBUG_ERROR, "%a: Corrupted DTB\n", __func__));
|
||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -64,7 +64,7 @@ PlatformPeimInitialization (
|
|||||||
FdtPages = EFI_SIZE_TO_PAGES (FdtSize);
|
FdtPages = EFI_SIZE_TO_PAGES (FdtSize);
|
||||||
NewBase = AllocatePages (FdtPages);
|
NewBase = AllocatePages (FdtPages);
|
||||||
if (NewBase == NULL) {
|
if (NewBase == NULL) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: Could not allocate memory for DTB\n", __FUNCTION__));
|
DEBUG ((DEBUG_ERROR, "%a: Could not allocate memory for DTB\n", __func__));
|
||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -72,7 +72,7 @@ PlatformPeimInitialization (
|
|||||||
|
|
||||||
FdtHobData = BuildGuidHob (&gFdtHobGuid, sizeof *FdtHobData);
|
FdtHobData = BuildGuidHob (&gFdtHobGuid, sizeof *FdtHobData);
|
||||||
if (FdtHobData == NULL) {
|
if (FdtHobData == NULL) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: Could not build FDT Hob\n", __FUNCTION__));
|
DEBUG ((DEBUG_ERROR, "%a: Could not build FDT Hob\n", __func__));
|
||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ SecStartup (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a() BootHartId: 0x%x, DeviceTreeAddress=0x%x\n",
|
"%a() BootHartId: 0x%x, DeviceTreeAddress=0x%x\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
BootHartId,
|
BootHartId,
|
||||||
DeviceTreeAddress
|
DeviceTreeAddress
|
||||||
));
|
));
|
||||||
|
@ -386,7 +386,7 @@ DecompressMemFvs (
|
|||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: OutputBuffer@%p+0x%x ScratchBuffer@%p+0x%x "
|
"%a: OutputBuffer@%p+0x%x ScratchBuffer@%p+0x%x "
|
||||||
"PcdOvmfDecompressionScratchEnd=0x%x\n",
|
"PcdOvmfDecompressionScratchEnd=0x%x\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
OutputBuffer,
|
OutputBuffer,
|
||||||
OutputBufferSize,
|
OutputBufferSize,
|
||||||
ScratchBuffer,
|
ScratchBuffer,
|
||||||
|
@ -263,7 +263,7 @@ SmmAccessPeiEntryPoint (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: no SMRAM with host bridge DID=0x%04x; only "
|
"%a: no SMRAM with host bridge DID=0x%04x; only "
|
||||||
"DID=0x%04x (Q35) is supported\n",
|
"DID=0x%04x (Q35) is supported\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
HostBridgeDevId,
|
HostBridgeDevId,
|
||||||
INTEL_Q35_MCH_DEVICE_ID
|
INTEL_Q35_MCH_DEVICE_ID
|
||||||
));
|
));
|
||||||
@ -283,7 +283,7 @@ SmmAccessPeiEntryPoint (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: this Q35 implementation lacks SMRAM\n",
|
"%a: this Q35 implementation lacks SMRAM\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
goto WrongConfig;
|
goto WrongConfig;
|
||||||
}
|
}
|
||||||
@ -378,7 +378,7 @@ SmmAccessPeiEntryPoint (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: SMRAM map follows, %d entries\n",
|
"%a: SMRAM map follows, %d entries\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
(INT32)Count
|
(INT32)Count
|
||||||
));
|
));
|
||||||
DEBUG ((
|
DEBUG ((
|
||||||
|
@ -113,7 +113,7 @@ NegotiateSmiFeatures (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: SMI feature negotiation unavailable\n",
|
"%a: SMI feature negotiation unavailable\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
@ -129,7 +129,7 @@ NegotiateSmiFeatures (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: size mismatch in feature negotiation\n",
|
"%a: size mismatch in feature negotiation\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
goto FatalError;
|
goto FatalError;
|
||||||
}
|
}
|
||||||
@ -168,7 +168,7 @@ NegotiateSmiFeatures (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: negotiation failed for feature bitmap 0x%Lx\n",
|
"%a: negotiation failed for feature bitmap 0x%Lx\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
mSmiFeatures
|
mSmiFeatures
|
||||||
));
|
));
|
||||||
goto FatalError;
|
goto FatalError;
|
||||||
@ -179,7 +179,7 @@ NegotiateSmiFeatures (
|
|||||||
// If we can't get broadcast SMIs from QEMU, that's acceptable too,
|
// If we can't get broadcast SMIs from QEMU, that's acceptable too,
|
||||||
// although not optimal.
|
// although not optimal.
|
||||||
//
|
//
|
||||||
DEBUG ((DEBUG_INFO, "%a: SMI broadcast unavailable\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a: SMI broadcast unavailable\n", __func__));
|
||||||
} else {
|
} else {
|
||||||
//
|
//
|
||||||
// Configure the traditional AP sync / SMI delivery mode for
|
// Configure the traditional AP sync / SMI delivery mode for
|
||||||
@ -192,31 +192,31 @@ NegotiateSmiFeatures (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: PiSmmCpuDxeSmm PCD configuration failed\n",
|
"%a: PiSmmCpuDxeSmm PCD configuration failed\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
goto FatalError;
|
goto FatalError;
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG ((DEBUG_INFO, "%a: using SMI broadcast\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a: using SMI broadcast\n", __func__));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((mSmiFeatures & ICH9_LPC_SMI_F_CPU_HOTPLUG) == 0) {
|
if ((mSmiFeatures & ICH9_LPC_SMI_F_CPU_HOTPLUG) == 0) {
|
||||||
DEBUG ((DEBUG_INFO, "%a: CPU hotplug not negotiated\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a: CPU hotplug not negotiated\n", __func__));
|
||||||
} else {
|
} else {
|
||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: CPU hotplug with SMI negotiated\n",
|
"%a: CPU hotplug with SMI negotiated\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((mSmiFeatures & ICH9_LPC_SMI_F_CPU_HOT_UNPLUG) == 0) {
|
if ((mSmiFeatures & ICH9_LPC_SMI_F_CPU_HOT_UNPLUG) == 0) {
|
||||||
DEBUG ((DEBUG_INFO, "%a: CPU hot-unplug not negotiated\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a: CPU hot-unplug not negotiated\n", __func__));
|
||||||
} else {
|
} else {
|
||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: CPU hot-unplug with SMI negotiated\n",
|
"%a: CPU hot-unplug with SMI negotiated\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -292,7 +292,7 @@ AppendFwCfgBootScript (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_VERBOSE,
|
DEBUG_VERBOSE,
|
||||||
"%a: SMI feature negotiation boot script saved\n",
|
"%a: SMI feature negotiation boot script saved\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -205,7 +205,7 @@ SmmControl2DxeEntryPoint (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: this Q35 implementation lacks SMI\n",
|
"%a: this Q35 implementation lacks SMI\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
goto FatalError;
|
goto FatalError;
|
||||||
}
|
}
|
||||||
@ -234,7 +234,7 @@ SmmControl2DxeEntryPoint (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: failed to lock down GBL_SMI_EN\n",
|
"%a: failed to lock down GBL_SMI_EN\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
goto FatalError;
|
goto FatalError;
|
||||||
}
|
}
|
||||||
@ -260,7 +260,7 @@ SmmControl2DxeEntryPoint (
|
|||||||
&mS3SaveStateInstalled
|
&mS3SaveStateInstalled
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: CreateEvent: %r\n", __FUNCTION__, Status));
|
DEBUG ((DEBUG_ERROR, "%a: CreateEvent: %r\n", __func__, Status));
|
||||||
goto FatalError;
|
goto FatalError;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -273,7 +273,7 @@ SmmControl2DxeEntryPoint (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: RegisterProtocolNotify: %r\n",
|
"%a: RegisterProtocolNotify: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
goto ReleaseEvent;
|
goto ReleaseEvent;
|
||||||
@ -284,7 +284,7 @@ SmmControl2DxeEntryPoint (
|
|||||||
//
|
//
|
||||||
Status = gBS->SignalEvent (mS3SaveStateInstalled);
|
Status = gBS->SignalEvent (mS3SaveStateInstalled);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: SignalEvent: %r\n", __FUNCTION__, Status));
|
DEBUG ((DEBUG_ERROR, "%a: SignalEvent: %r\n", __func__, Status));
|
||||||
goto ReleaseEvent;
|
goto ReleaseEvent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -303,7 +303,7 @@ SmmControl2DxeEntryPoint (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: InstallMultipleProtocolInterfaces: %r\n",
|
"%a: InstallMultipleProtocolInterfaces: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
goto ReleaseEvent;
|
goto ReleaseEvent;
|
||||||
@ -376,7 +376,7 @@ OnS3SaveStateInstalled (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: EFI_BOOT_SCRIPT_IO_READ_WRITE_OPCODE: %r\n",
|
"%a: EFI_BOOT_SCRIPT_IO_READ_WRITE_OPCODE: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
@ -400,14 +400,14 @@ OnS3SaveStateInstalled (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: EFI_BOOT_SCRIPT_PCI_CONFIG_READ_WRITE_OPCODE: %r\n",
|
"%a: EFI_BOOT_SCRIPT_PCI_CONFIG_READ_WRITE_OPCODE: %r\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
CpuDeadLoop ();
|
CpuDeadLoop ();
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG ((DEBUG_VERBOSE, "%a: chipset boot script saved\n", __FUNCTION__));
|
DEBUG ((DEBUG_VERBOSE, "%a: chipset boot script saved\n", __func__));
|
||||||
|
|
||||||
//
|
//
|
||||||
// Append a boot script fragment that re-selects the negotiated SMI features.
|
// Append a boot script fragment that re-selects the negotiated SMI features.
|
||||||
|
@ -49,11 +49,11 @@ Tcg2ConfigPeimEntryPoint (
|
|||||||
UINTN Size;
|
UINTN Size;
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
|
||||||
DEBUG ((DEBUG_INFO, "%a\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a\n", __func__));
|
||||||
|
|
||||||
Status = InternalTpm12Detect ();
|
Status = InternalTpm12Detect ();
|
||||||
if (!EFI_ERROR (Status)) {
|
if (!EFI_ERROR (Status)) {
|
||||||
DEBUG ((DEBUG_INFO, "%a: TPM1.2 detected\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a: TPM1.2 detected\n", __func__));
|
||||||
Size = sizeof (gEfiTpmDeviceInstanceTpm12Guid);
|
Size = sizeof (gEfiTpmDeviceInstanceTpm12Guid);
|
||||||
Status = PcdSetPtrS (
|
Status = PcdSetPtrS (
|
||||||
PcdTpmInstanceGuid,
|
PcdTpmInstanceGuid,
|
||||||
@ -64,7 +64,7 @@ Tcg2ConfigPeimEntryPoint (
|
|||||||
} else {
|
} else {
|
||||||
Status = Tpm2RequestUseTpm ();
|
Status = Tpm2RequestUseTpm ();
|
||||||
if (!EFI_ERROR (Status)) {
|
if (!EFI_ERROR (Status)) {
|
||||||
DEBUG ((DEBUG_INFO, "%a: TPM2 detected\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a: TPM2 detected\n", __func__));
|
||||||
Size = sizeof (gEfiTpmDeviceInstanceTpm20DtpmGuid);
|
Size = sizeof (gEfiTpmDeviceInstanceTpm20DtpmGuid);
|
||||||
Status = PcdSetPtrS (
|
Status = PcdSetPtrS (
|
||||||
PcdTpmInstanceGuid,
|
PcdTpmInstanceGuid,
|
||||||
@ -73,7 +73,7 @@ Tcg2ConfigPeimEntryPoint (
|
|||||||
);
|
);
|
||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
} else {
|
} else {
|
||||||
DEBUG ((DEBUG_INFO, "%a: no TPM detected\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a: no TPM detected\n", __func__));
|
||||||
//
|
//
|
||||||
// If no TPM2 was detected, we still need to install
|
// If no TPM2 was detected, we still need to install
|
||||||
// TpmInitializationDonePpi. Namely, Tcg2Pei will exit early upon seeing
|
// TpmInitializationDonePpi. Namely, Tcg2Pei will exit early upon seeing
|
||||||
|
@ -38,7 +38,7 @@ TpmMmioSevDecryptPeimEntryPoint (
|
|||||||
RETURN_STATUS DecryptStatus;
|
RETURN_STATUS DecryptStatus;
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
|
||||||
DEBUG ((DEBUG_INFO, "%a\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a\n", __func__));
|
||||||
|
|
||||||
//
|
//
|
||||||
// If SEV is active, MMIO succeeds against an encrypted physical address
|
// If SEV is active, MMIO succeeds against an encrypted physical address
|
||||||
@ -60,7 +60,7 @@ TpmMmioSevDecryptPeimEntryPoint (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: mapping TPM MMIO address range unencrypted\n",
|
"%a: mapping TPM MMIO address range unencrypted\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
|
|
||||||
DecryptStatus = MemEncryptSevClearMmioPageEncMask (
|
DecryptStatus = MemEncryptSevClearMmioPageEncMask (
|
||||||
@ -73,7 +73,7 @@ TpmMmioSevDecryptPeimEntryPoint (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: failed to map TPM MMIO address range unencrypted\n",
|
"%a: failed to map TPM MMIO address range unencrypted\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
ASSERT_RETURN_ERROR (DecryptStatus);
|
ASSERT_RETURN_ERROR (DecryptStatus);
|
||||||
}
|
}
|
||||||
|
@ -175,7 +175,7 @@ AlterAcpiTable (
|
|||||||
NewMadtTableLength = Table->Length + sizeof (EFI_ACPI_6_4_MULTIPROCESSOR_WAKEUP_STRUCTURE);
|
NewMadtTableLength = Table->Length + sizeof (EFI_ACPI_6_4_MULTIPROCESSOR_WAKEUP_STRUCTURE);
|
||||||
NewMadtTable = AllocatePool (NewMadtTableLength);
|
NewMadtTable = AllocatePool (NewMadtTableLength);
|
||||||
if (NewMadtTable == NULL) {
|
if (NewMadtTable == NULL) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: OUT_OF_SOURCES error.\n", __FUNCTION__));
|
DEBUG ((DEBUG_ERROR, "%a: OUT_OF_SOURCES error.\n", __func__));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -422,11 +422,11 @@ NorFlashFvbInitialize (
|
|||||||
// Install the Default FVB header if required
|
// Install the Default FVB header if required
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
// There is no valid header, so time to install one.
|
// There is no valid header, so time to install one.
|
||||||
DEBUG ((DEBUG_INFO, "%a: The FVB Header is not valid.\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a: The FVB Header is not valid.\n", __func__));
|
||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: Installing a correct one for this volume.\n",
|
"%a: Installing a correct one for this volume.\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
|
|
||||||
// Erase all the NorFlash that is reserved for variable storage
|
// Erase all the NorFlash that is reserved for variable storage
|
||||||
|
@ -74,7 +74,7 @@ InitializeFvAndVariableStoreHeaders (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: NvStorageFtwWorkingBase is not contiguous with NvStorageVariableBase region\n",
|
"%a: NvStorageFtwWorkingBase is not contiguous with NvStorageVariableBase region\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
@ -83,7 +83,7 @@ InitializeFvAndVariableStoreHeaders (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: NvStorageFtwSpareBase is not contiguous with NvStorageFtwWorkingBase region\n",
|
"%a: NvStorageFtwSpareBase is not contiguous with NvStorageFtwWorkingBase region\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
@ -93,7 +93,7 @@ InitializeFvAndVariableStoreHeaders (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: NvStorageVariableSize is 0x%x, should be atleast one block size\n",
|
"%a: NvStorageVariableSize is 0x%x, should be atleast one block size\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
NvStorageVariableSize
|
NvStorageVariableSize
|
||||||
));
|
));
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
@ -103,7 +103,7 @@ InitializeFvAndVariableStoreHeaders (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: NvStorageFtwWorkingSize is 0x%x, should be atleast one block size\n",
|
"%a: NvStorageFtwWorkingSize is 0x%x, should be atleast one block size\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
NvStorageFtwWorkingSize
|
NvStorageFtwWorkingSize
|
||||||
));
|
));
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
@ -113,7 +113,7 @@ InitializeFvAndVariableStoreHeaders (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: NvStorageFtwSpareSize is 0x%x, should be atleast one block size\n",
|
"%a: NvStorageFtwSpareSize is 0x%x, should be atleast one block size\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
NvStorageFtwSpareSize
|
NvStorageFtwSpareSize
|
||||||
));
|
));
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
@ -124,7 +124,7 @@ InitializeFvAndVariableStoreHeaders (
|
|||||||
(NvStorageFtwWorkingBase % Instance->BlockSize != 0) ||
|
(NvStorageFtwWorkingBase % Instance->BlockSize != 0) ||
|
||||||
(NvStorageFtwSpareBase % Instance->BlockSize != 0))
|
(NvStorageFtwSpareBase % Instance->BlockSize != 0))
|
||||||
{
|
{
|
||||||
DEBUG ((DEBUG_ERROR, "%a: NvStorage Base addresses must be aligned to block size boundaries", __FUNCTION__));
|
DEBUG ((DEBUG_ERROR, "%a: NvStorage Base addresses must be aligned to block size boundaries", __func__));
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -209,7 +209,7 @@ ValidateFvHeader (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: No Firmware Volume header present\n",
|
"%a: No Firmware Volume header present\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
return EFI_NOT_FOUND;
|
return EFI_NOT_FOUND;
|
||||||
}
|
}
|
||||||
@ -219,7 +219,7 @@ ValidateFvHeader (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: Firmware Volume Guid non-compatible\n",
|
"%a: Firmware Volume Guid non-compatible\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
return EFI_NOT_FOUND;
|
return EFI_NOT_FOUND;
|
||||||
}
|
}
|
||||||
@ -230,7 +230,7 @@ ValidateFvHeader (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: FV checksum is invalid (Checksum:0x%X)\n",
|
"%a: FV checksum is invalid (Checksum:0x%X)\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Checksum
|
Checksum
|
||||||
));
|
));
|
||||||
return EFI_NOT_FOUND;
|
return EFI_NOT_FOUND;
|
||||||
@ -245,7 +245,7 @@ ValidateFvHeader (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: Variable Store Guid non-compatible\n",
|
"%a: Variable Store Guid non-compatible\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
return EFI_NOT_FOUND;
|
return EFI_NOT_FOUND;
|
||||||
}
|
}
|
||||||
@ -255,7 +255,7 @@ ValidateFvHeader (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: Variable Store Length does not match\n",
|
"%a: Variable Store Length does not match\n",
|
||||||
__FUNCTION__
|
__func__
|
||||||
));
|
));
|
||||||
return EFI_NOT_FOUND;
|
return EFI_NOT_FOUND;
|
||||||
}
|
}
|
||||||
|
@ -943,7 +943,7 @@ VirtioBlkInit (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: LbaSize=0x%x[B] NumBlocks=0x%Lx[Lba]\n",
|
"%a: LbaSize=0x%x[B] NumBlocks=0x%Lx[Lba]\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Dev->BlockIoMedia.BlockSize,
|
Dev->BlockIoMedia.BlockSize,
|
||||||
Dev->BlockIoMedia.LastBlock + 1
|
Dev->BlockIoMedia.LastBlock + 1
|
||||||
));
|
));
|
||||||
@ -958,14 +958,14 @@ VirtioBlkInit (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: FirstAligned=0x%Lx[Lba] PhysBlkSize=0x%x[Lba]\n",
|
"%a: FirstAligned=0x%Lx[Lba] PhysBlkSize=0x%x[Lba]\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Dev->BlockIoMedia.LowestAlignedLba,
|
Dev->BlockIoMedia.LowestAlignedLba,
|
||||||
Dev->BlockIoMedia.LogicalBlocksPerPhysicalBlock
|
Dev->BlockIoMedia.LogicalBlocksPerPhysicalBlock
|
||||||
));
|
));
|
||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a: OptimalTransferLengthGranularity=0x%x[Lba]\n",
|
"%a: OptimalTransferLengthGranularity=0x%x[Lba]\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
Dev->BlockIoMedia.OptimalTransferLengthGranularity
|
Dev->BlockIoMedia.OptimalTransferLengthGranularity
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
@ -1037,7 +1037,7 @@ VirtioBlkExitBoot (
|
|||||||
{
|
{
|
||||||
VBLK_DEV *Dev;
|
VBLK_DEV *Dev;
|
||||||
|
|
||||||
DEBUG ((DEBUG_VERBOSE, "%a: Context=0x%p\n", __FUNCTION__, Context));
|
DEBUG ((DEBUG_VERBOSE, "%a: Context=0x%p\n", __func__, Context));
|
||||||
//
|
//
|
||||||
// Reset the device. This causes the hypervisor to forget about the virtio
|
// Reset the device. This causes the hypervisor to forget about the virtio
|
||||||
// ring.
|
// ring.
|
||||||
|
@ -111,7 +111,7 @@ VirtioFsFuseFlush (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Label=\"%s\" NodeId=%Lu FuseHandle=%Lu "
|
"%a: Label=\"%s\" NodeId=%Lu FuseHandle=%Lu "
|
||||||
"Errno=%d\n",
|
"Errno=%d\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
VirtioFs->Label,
|
VirtioFs->Label,
|
||||||
NodeId,
|
NodeId,
|
||||||
FuseHandle,
|
FuseHandle,
|
||||||
|
@ -116,7 +116,7 @@ VirtioFsFuseFsyncFileOrDir (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Label=\"%s\" NodeId=%Lu FuseHandle=%Lu "
|
"%a: Label=\"%s\" NodeId=%Lu FuseHandle=%Lu "
|
||||||
"IsDir=%d Errno=%d\n",
|
"IsDir=%d Errno=%d\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
VirtioFs->Label,
|
VirtioFs->Label,
|
||||||
NodeId,
|
NodeId,
|
||||||
FuseHandle,
|
FuseHandle,
|
||||||
|
@ -116,7 +116,7 @@ VirtioFsFuseGetAttr (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Label=\"%s\" NodeId=%Lu Errno=%d\n",
|
"%a: Label=\"%s\" NodeId=%Lu Errno=%d\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
VirtioFs->Label,
|
VirtioFs->Label,
|
||||||
NodeId,
|
NodeId,
|
||||||
CommonResp.Error
|
CommonResp.Error
|
||||||
|
@ -125,7 +125,7 @@ VirtioFsFuseInitSession (
|
|||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Label=\"%s\" Errno=%d\n",
|
"%a: Label=\"%s\" Errno=%d\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
VirtioFs->Label,
|
VirtioFs->Label,
|
||||||
CommonResp.Error
|
CommonResp.Error
|
||||||
));
|
));
|
||||||
|
@ -128,7 +128,7 @@ VirtioFsFuseLookup (
|
|||||||
DEBUG_VERBOSE :
|
DEBUG_VERBOSE :
|
||||||
DEBUG_ERROR),
|
DEBUG_ERROR),
|
||||||
"%a: Label=\"%s\" DirNodeId=%Lu Name=\"%a\" Errno=%d\n",
|
"%a: Label=\"%s\" DirNodeId=%Lu Name=\"%a\" Errno=%d\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
VirtioFs->Label,
|
VirtioFs->Label,
|
||||||
DirNodeId,
|
DirNodeId,
|
||||||
Name,
|
Name,
|
||||||
|
@ -127,7 +127,7 @@ VirtioFsFuseMkDir (
|
|||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a: Label=\"%s\" ParentNodeId=%Lu Name=\"%a\" "
|
"%a: Label=\"%s\" ParentNodeId=%Lu Name=\"%a\" "
|
||||||
"Errno=%d\n",
|
"Errno=%d\n",
|
||||||
__FUNCTION__,
|
__func__,
|
||||||
VirtioFs->Label,
|
VirtioFs->Label,
|
||||||
ParentNodeId,
|
ParentNodeId,
|
||||||
Name,
|
Name,
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user