diff --git a/MdeModulePkg/Library/BaseHobLibNull/BaseHobLibNull.c b/MdeModulePkg/Library/BaseHobLibNull/BaseHobLibNull.c index 0cddccd60f..9e653304f8 100644 --- a/MdeModulePkg/Library/BaseHobLibNull/BaseHobLibNull.c +++ b/MdeModulePkg/Library/BaseHobLibNull/BaseHobLibNull.c @@ -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.