summaryrefslogtreecommitdiff
path: root/MdePkg/Library/DxeCoreHobLib
diff options
context:
space:
mode:
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2009-10-28 07:53:32 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2009-10-28 07:53:32 +0000
commitb6b55af34cf6e1ebcd2dacdd73252aa5f16bf41e (patch)
tree8cb7b5d343533207baa7e9b5e0843fc97e7c6d1b /MdePkg/Library/DxeCoreHobLib
parent62ba2e4ade20ad48dec105e9f7db4a99d46da43b (diff)
downloadedk2-platforms-b6b55af34cf6e1ebcd2dacdd73252aa5f16bf41e.tar.xz
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
Diffstat (limited to 'MdePkg/Library/DxeCoreHobLib')
-rw-r--r--MdePkg/Library/DxeCoreHobLib/HobLib.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/MdePkg/Library/DxeCoreHobLib/HobLib.c b/MdePkg/Library/DxeCoreHobLib/HobLib.c
index 8bc346e620..2bbc04a313 100644
--- a/MdePkg/Library/DxeCoreHobLib/HobLib.c
+++ b/MdePkg/Library/DxeCoreHobLib/HobLib.c
@@ -528,3 +528,28 @@ BuildMemoryAllocationHob (
//
ASSERT (FALSE);
}
+
+/**
+ 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
+ )
+{
+ //
+ // PEI HOB is read only for DXE phase
+ //
+ ASSERT (FALSE);
+}