summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/DxeHobLib
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2007-08-23 06:22:53 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2007-08-23 06:22:53 +0000
commit07ad9b81e3746c67d10696b0574c8010e11a5762 (patch)
tree9f25432fcdab8ca99d8676e768c6fa0a8eb7f266 /MdePkg/Library/DxeHobLib
parent687a2e5f6902fa26c7a1d7a7705e0747c4095125 (diff)
downloadedk2-07ad9b81e3746c67d10696b0574c8010e11a5762.tar.gz
edk2-07ad9b81e3746c67d10696b0574c8010e11a5762.tar.bz2
edk2-07ad9b81e3746c67d10696b0574c8010e11a5762.zip
Add in BuildFv2Hob in HobLib
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3693 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/DxeHobLib')
-rw-r--r--MdePkg/Library/DxeHobLib/HobLib.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/MdePkg/Library/DxeHobLib/HobLib.c b/MdePkg/Library/DxeHobLib/HobLib.c
index 43e57b6a97..605d42f80c 100644
--- a/MdePkg/Library/DxeHobLib/HobLib.c
+++ b/MdePkg/Library/DxeHobLib/HobLib.c
@@ -373,6 +373,33 @@ BuildFvHob (
}
/**
+ Builds a EFI_HOB_TYPE_FV2 HOB.
+
+ This function builds a EFI_HOB_TYPE_FV2 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 base address of the Firmware Volume.
+ @param Length The size of the Firmware Volume in bytes.
+ @param FvName The name of the Firmware Volume.
+ @param FileName The name of the file.
+
+**/
+VOID
+EFIAPI
+BuildFv2Hob (
+ IN EFI_PHYSICAL_ADDRESS BaseAddress,
+ IN UINT64 Length,
+ IN CONST EFI_GUID *FvName,
+ IN CONST EFI_GUID *FileName
+ )
+{
+ ASSERT (FALSE);
+}
+
+
+/**
Builds a Capsule Volume HOB.
This function builds a Capsule Volume HOB.