ShellPkg: DtbTableAddress via config in dmem

DTB address can be modified through the config table. Use
this address in dmem output.
EmbeddedPkg dependency added to
ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
and ShellPkg/ShellPkg.ci.yaml

Adds to: 42b0443599
("ShellPkg: UefiShellDebug1CommandsLib: Uefi Config Tables in Dmem.c")

Signed-off-by: Prachotan Reddy Bathi <Prachotan.Bathi@arm.com>
This commit is contained in:
Prachotan Reddy Bathi
2025-02-12 12:36:45 -06:00
committed by mergify[bot]
parent f41cc8ac79
commit 01295fd25b
3 changed files with 8 additions and 0 deletions

View File

@@ -491,6 +491,11 @@ ShellCommandRunDmem (
continue; continue;
} }
if (CompareGuid (&gST->ConfigurationTable[TableWalker].VendorGuid, &gFdtTableGuid)) {
DtbTableAddress = (UINT64)(UINTN)gST->ConfigurationTable[TableWalker].VendorTable;
continue;
}
if (CompareGuid (&gST->ConfigurationTable[TableWalker].VendorGuid, &gEfiMemoryAttributesTableGuid)) { if (CompareGuid (&gST->ConfigurationTable[TableWalker].VendorGuid, &gEfiMemoryAttributesTableGuid)) {
MemoryAttributesTableAddress = (UINT64)(UINTN)gST->ConfigurationTable[TableWalker].VendorTable; MemoryAttributesTableAddress = (UINT64)(UINTN)gST->ConfigurationTable[TableWalker].VendorTable;
continue; continue;

View File

@@ -96,6 +96,7 @@
MdePkg/MdePkg.dec MdePkg/MdePkg.dec
ShellPkg/ShellPkg.dec ShellPkg/ShellPkg.dec
MdeModulePkg/MdeModulePkg.dec MdeModulePkg/MdeModulePkg.dec
EmbeddedPkg/EmbeddedPkg.dec
[LibraryClasses] [LibraryClasses]
MemoryAllocationLib MemoryAllocationLib
@@ -144,3 +145,4 @@
gEfiConfProfilesUefiSpecGuid ## SOMETIMES_CONSUMES ## GUID gEfiConfProfilesUefiSpecGuid ## SOMETIMES_CONSUMES ## GUID
gEfiConfProfilesEbbrSpec21Guid ## SOMETIMES_CONSUMES ## GUID gEfiConfProfilesEbbrSpec21Guid ## SOMETIMES_CONSUMES ## GUID
gEfiConfProfilesEbbrSpec22Guid ## SOMETIMES_CONSUMES ## GUID gEfiConfProfilesEbbrSpec22Guid ## SOMETIMES_CONSUMES ## GUID
gFdtTableGuid ## SOMETIMES_CONSUMES ## SystemTable

View File

@@ -35,6 +35,7 @@
"MdePkg/MdePkg.dec", "MdePkg/MdePkg.dec",
"MdeModulePkg/MdeModulePkg.dec", "MdeModulePkg/MdeModulePkg.dec",
"ShellPkg/ShellPkg.dec", "ShellPkg/ShellPkg.dec",
"EmbeddedPkg/EmbeddedPkg.dec",
"NetworkPkg/NetworkPkg.dec" "NetworkPkg/NetworkPkg.dec"
], ],
# For host based unit tests # For host based unit tests