MdeModulePkg: Add BuildResourceDescriptor2Hob to HobLibs

Add BuildResourceDescriptor2Hob to HobLib implementations
as described in PI 1.10 specification.

Signed-off-by: Aaron Pop <aaronpop@microsoft.com>
This commit is contained in:
Aaron Pop 2026-07-28 14:01:22 -07:00
parent 430ee00cab
commit a9687f1660

View file

@ -231,6 +231,34 @@ BuildResourceDescriptorWithOwnerHob (
ASSERT (FALSE);
}
/**
Builds a HOB that describes a chunk of system memory with memory attributes.
This function builds a HOB that describes a chunk of system memory.
If there is no additional space for HOB creation, then ASSERT().
@param ResourceType The type of resource described by this HOB.
@param ResourceCapabilities The resource capabilities of the memory described by this HOB.
@param PhysicalStart The 64 bit physical address of memory described by this HOB.
@param ResourceLength The length of the memory described by this HOB in bytes.
@param ResourceMemoryAttributes The memory attribute for the memory described by this HOB.
@param OwnerGUID GUID for the owner of this resource.
**/
VOID
EFIAPI
BuildResourceDescriptor2Hob (
IN EFI_RESOURCE_TYPE ResourceType,
IN EFI_RESOURCE_ATTRIBUTE_TYPE ResourceCapabilities,
IN EFI_PHYSICAL_ADDRESS PhysicalStart,
IN UINT64 ResourceLength,
IN UINT64 ResourceMemoryAttributes,
IN EFI_GUID *OwnerGUID OPTIONAL
)
{
ASSERT (FALSE);
}
/**
Builds a HOB that describes a chunk of system memory.