1. rolled back Hob library to remove new API - BuildCapsuleHob() and related implementation in MdePkg.
2. implemented BuildCvHob() in PeiHobLib/HobLib.c. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9389 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
25126a0530
commit
61acaac87f
|
@ -415,25 +415,6 @@ BuildMemoryAllocationHob (
|
||||||
IN EFI_MEMORY_TYPE MemoryType
|
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.
|
Returns the type of a HOB.
|
||||||
|
|
||||||
|
|
|
@ -562,28 +562,3 @@ BuildMemoryAllocationHob (
|
||||||
//
|
//
|
||||||
ASSERT (FALSE);
|
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);
|
|
||||||
}
|
|
||||||
|
|
|
@ -489,7 +489,12 @@ BuildCvHob (
|
||||||
IN UINT64 Length
|
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));
|
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;
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue