mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 23:54:02 +02:00
Add migration rule for Build Guid Hob.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1513 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
d47b990060
commit
733d48fec3
@ -159,7 +159,7 @@ PeiLib,LShiftU64,LShiftU64,BaseLib,MdePkg
|
|||||||
PeiLib,MultU64x32,MultU64x32,BaseLib,MdePkg
|
PeiLib,MultU64x32,MultU64x32,BaseLib,MdePkg
|
||||||
PeiLib,PeiBuildHobModule,BuildModuleHob#%,HobLib,MdePkg
|
PeiLib,PeiBuildHobModule,BuildModuleHob#%,HobLib,MdePkg
|
||||||
PeiLib,PeiBuildHobResourceDescriptor,BuildResourceDescriptorHob#%,HobLib,MdePkg
|
PeiLib,PeiBuildHobResourceDescriptor,BuildResourceDescriptorHob#%,HobLib,MdePkg
|
||||||
PeiLib,PeiBuildHobGuid,BuildGuidHob#%,HobLib,MdePkg
|
PeiLib,PeiBuildHobGuid,R8_PeiBuildHobGuid#%,%,MdePkg
|
||||||
PeiLib,PeiBuildHobGuidData,BuildGuidDataHob#%,HobLib,MdePkg
|
PeiLib,PeiBuildHobGuidData,BuildGuidDataHob#%,HobLib,MdePkg
|
||||||
PeiLib,PeiBuildHobFv,BuildFvHob#%,HobLib,MdePkg
|
PeiLib,PeiBuildHobFv,BuildFvHob#%,HobLib,MdePkg
|
||||||
PeiLib,PeiBuildHobCpu,BuildCpuHob#%,HobLib,MdePkg
|
PeiLib,PeiBuildHobCpu,BuildCpuHob#%,HobLib,MdePkg
|
||||||
|
|
@ -1105,3 +1105,46 @@ Returns:
|
|||||||
}
|
}
|
||||||
////~
|
////~
|
||||||
|
|
||||||
|
////#HobLib
|
||||||
|
EFI_STATUS
|
||||||
|
R8_PeiBuildHobGuid (
|
||||||
|
IN EFI_GUID *Guid,
|
||||||
|
IN UINTN DataLength,
|
||||||
|
OUT VOID **Hob
|
||||||
|
)
|
||||||
|
/*++
|
||||||
|
|
||||||
|
Routine Description:
|
||||||
|
|
||||||
|
Builds a custom HOB that is tagged with a GUID for identification
|
||||||
|
|
||||||
|
Arguments:
|
||||||
|
|
||||||
|
Guid - The GUID of the custome HOB type
|
||||||
|
DataLength - The size of the data payload for the GUIDed HOB
|
||||||
|
Hob - Pointer to pointer to the created Hob
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
|
||||||
|
EFI_SUCCESS - Hob is successfully built.
|
||||||
|
Others - Errors occur while creating new Hob
|
||||||
|
|
||||||
|
--*/
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// Porting Guide: Apply the new interface of BuildGuidHob in R9 HobLib.
|
||||||
|
// Pay attention that the return value has been changed to the start address of
|
||||||
|
// GUID HOB data so that caller can fill the customized data.
|
||||||
|
// For BuildGuidHob (), the HOB Header and Name field is already stripped..
|
||||||
|
//
|
||||||
|
VOID *HobData;
|
||||||
|
|
||||||
|
HobData = BuildGuidHob (Guid, DataLength);
|
||||||
|
//
|
||||||
|
// This step is necessary to be compatible with R8 interface!
|
||||||
|
//
|
||||||
|
*Hob = (VOID *) ((UINT8 *) HobData - sizeof (EFI_HOB_GUID_TYPE));
|
||||||
|
|
||||||
|
return EFI_SUCCESS;
|
||||||
|
}
|
||||||
|
////~
|
||||||
|
@ -35,6 +35,7 @@ public final class SourceFileReplacer implements Common.ForDoAll {
|
|||||||
"BuildResourceDescriptorHob",
|
"BuildResourceDescriptorHob",
|
||||||
"BuildFvHob",
|
"BuildFvHob",
|
||||||
"BuildCpuHob",
|
"BuildCpuHob",
|
||||||
|
"BuildGuidDataHob",
|
||||||
"BuildStackHob",
|
"BuildStackHob",
|
||||||
"BuildBspStoreHob",
|
"BuildBspStoreHob",
|
||||||
"BuildMemoryAllocationHob"
|
"BuildMemoryAllocationHob"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user