summaryrefslogtreecommitdiff
path: root/MdePkg/Library/PeiHobLib/HobLib.c
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/PeiHobLib/HobLib.c')
-rw-r--r--MdePkg/Library/PeiHobLib/HobLib.c34
1 files changed, 6 insertions, 28 deletions
diff --git a/MdePkg/Library/PeiHobLib/HobLib.c b/MdePkg/Library/PeiHobLib/HobLib.c
index f0cc665085..1815ddf530 100644
--- a/MdePkg/Library/PeiHobLib/HobLib.c
+++ b/MdePkg/Library/PeiHobLib/HobLib.c
@@ -489,7 +489,12 @@ BuildCvHob (
IN UINT64 Length
)
{
- ASSERT (FALSE);
+ EFI_HOB_UEFI_CAPSULE *Hob;
+
+ Hob = InternalPeiCreateHob (EFI_HOB_TYPE_UEFI_CAPSULE, sizeof (EFI_HOB_UEFI_CAPSULE));
+
+ Hob->BaseAddress = BaseAddress;
+ Hob->Length = Length;
}
/**
@@ -641,30 +646,3 @@ BuildMemoryAllocationHob (
//
ZeroMem (Hob->AllocDescriptor.Reserved, sizeof (Hob->AllocDescriptor.Reserved));
}
-
-/**
- Builds an UEFI Capsule HOB.
-
- This function builds an UEFI Capsule HOB.
- It can only be invoked during PEI phase;
- for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.
- If there is no additional space for HOB creation, then ASSERT().
-
- @param BaseAddress The physical memory-mapped base address of an UEFI capsule.
- @param Length The length of the contiguous memory in bytes.
-
-**/
-VOID
-EFIAPI
-BuildCapsuleHob (
- IN EFI_PHYSICAL_ADDRESS BaseAddress,
- IN UINT64 Length
- )
-{
- EFI_HOB_UEFI_CAPSULE *Hob;
-
- Hob = InternalPeiCreateHob (EFI_HOB_TYPE_UEFI_CAPSULE, sizeof (EFI_HOB_UEFI_CAPSULE));
-
- Hob->BaseAddress = BaseAddress;
- Hob->Length = Length;
-}