From b6b55af34cf6e1ebcd2dacdd73252aa5f16bf41e Mon Sep 17 00:00:00 2001 From: vanjeff Date: Wed, 28 Oct 2009 07:53:32 +0000 Subject: UEFI Capsule HOB updating includes: 1. add BuildCapsuleHob() in HobLib.h 2. add related APIs implementation in hob library instances. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9378 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Include/Library/HobLib.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'MdePkg/Include') diff --git a/MdePkg/Include/Library/HobLib.h b/MdePkg/Include/Library/HobLib.h index d17de0b35e..dcb4080d48 100644 --- a/MdePkg/Include/Library/HobLib.h +++ b/MdePkg/Include/Library/HobLib.h @@ -415,6 +415,25 @@ BuildMemoryAllocationHob ( IN EFI_MEMORY_TYPE MemoryType ); +/** + 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 + ); + /** Returns the type of a HOB. -- cgit v1.2.3