IN EFI_MEMORY_TYPE MemoryType\r
);\r
\r
-/**\r
- Builds an UEFI Capsule HOB.\r
-\r
- This function builds an UEFI Capsule HOB.\r
- It can only be invoked during PEI phase;\r
- for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
- If there is no additional space for HOB creation, then ASSERT().\r
-\r
- @param BaseAddress The physical memory-mapped base address of an UEFI capsule.\r
- @param Length The length of the contiguous memory in bytes.\r
-\r
-**/\r
-VOID\r
-EFIAPI\r
-BuildCapsuleHob (\r
- IN EFI_PHYSICAL_ADDRESS BaseAddress,\r
- IN UINT64 Length\r
- );\r
-\r
/**\r
Returns the type of a HOB.\r
\r
//\r
ASSERT (FALSE);\r
}\r
-\r
-/**\r
- Builds an UEFI Capsule HOB.\r
-\r
- This function builds an UEFI Capsule HOB.\r
- It can only be invoked during PEI phase;\r
- for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
- If there is no additional space for HOB creation, then ASSERT().\r
-\r
- @param BaseAddress The physical memory-mapped base address of an UEFI capsule.\r
- @param Length The length of the contiguous memory in bytes.\r
-\r
-**/\r
-VOID\r
-EFIAPI\r
-BuildCapsuleHob (\r
- IN EFI_PHYSICAL_ADDRESS BaseAddress,\r
- IN UINT64 Length\r
- )\r
-{\r
- //\r
- // PEI HOB is read only for DXE phase\r
- //\r
- ASSERT (FALSE);\r
-}\r
IN UINT64 Length\r
)\r
{\r
- ASSERT (FALSE);\r
+ EFI_HOB_UEFI_CAPSULE *Hob;\r
+\r
+ Hob = InternalPeiCreateHob (EFI_HOB_TYPE_UEFI_CAPSULE, sizeof (EFI_HOB_UEFI_CAPSULE));\r
+\r
+ Hob->BaseAddress = BaseAddress;\r
+ Hob->Length = Length;\r
}\r
\r
/**\r
//\r
ZeroMem (Hob->AllocDescriptor.Reserved, sizeof (Hob->AllocDescriptor.Reserved));\r
}\r
-\r
-/**\r
- Builds an UEFI Capsule HOB.\r
-\r
- This function builds an UEFI Capsule HOB.\r
- It can only be invoked during PEI phase;\r
- for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
- If there is no additional space for HOB creation, then ASSERT().\r
-\r
- @param BaseAddress The physical memory-mapped base address of an UEFI capsule.\r
- @param Length The length of the contiguous memory in bytes.\r
-\r
-**/\r
-VOID\r
-EFIAPI\r
-BuildCapsuleHob (\r
- IN EFI_PHYSICAL_ADDRESS BaseAddress,\r
- IN UINT64 Length\r
- )\r
-{\r
- EFI_HOB_UEFI_CAPSULE *Hob;\r
-\r
- Hob = InternalPeiCreateHob (EFI_HOB_TYPE_UEFI_CAPSULE, sizeof (EFI_HOB_UEFI_CAPSULE));\r
-\r
- Hob->BaseAddress = BaseAddress;\r
- Hob->Length = Length;\r
-}\r