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:
qhuang8 2006-09-11 13:49:03 +00:00
parent d47b990060
commit 733d48fec3
3 changed files with 45 additions and 1 deletions

View File

@ -159,7 +159,7 @@ PeiLib,LShiftU64,LShiftU64,BaseLib,MdePkg
PeiLib,MultU64x32,MultU64x32,BaseLib,MdePkg
PeiLib,PeiBuildHobModule,BuildModuleHob#%,HobLib,MdePkg
PeiLib,PeiBuildHobResourceDescriptor,BuildResourceDescriptorHob#%,HobLib,MdePkg
PeiLib,PeiBuildHobGuid,BuildGuidHob#%,HobLib,MdePkg
PeiLib,PeiBuildHobGuid,R8_PeiBuildHobGuid#%,%,MdePkg
PeiLib,PeiBuildHobGuidData,BuildGuidDataHob#%,HobLib,MdePkg
PeiLib,PeiBuildHobFv,BuildFvHob#%,HobLib,MdePkg
PeiLib,PeiBuildHobCpu,BuildCpuHob#%,HobLib,MdePkg

1 R8.5LibClass R8.5Lib R9Lib R9LibClass Package
159 PeiLib MultU64x32 MultU64x32 BaseLib MdePkg
160 PeiLib PeiBuildHobModule BuildModuleHob#% HobLib MdePkg
161 PeiLib PeiBuildHobResourceDescriptor BuildResourceDescriptorHob#% HobLib MdePkg
162 PeiLib PeiBuildHobGuid BuildGuidHob#% R8_PeiBuildHobGuid#% HobLib % MdePkg
163 PeiLib PeiBuildHobGuidData BuildGuidDataHob#% HobLib MdePkg
164 PeiLib PeiBuildHobFv BuildFvHob#% HobLib MdePkg
165 PeiLib PeiBuildHobCpu BuildCpuHob#% HobLib MdePkg

View File

@ -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;
}
////~

View File

@ -35,6 +35,7 @@ public final class SourceFileReplacer implements Common.ForDoAll {
"BuildResourceDescriptorHob",
"BuildFvHob",
"BuildCpuHob",
"BuildGuidDataHob",
"BuildStackHob",
"BuildBspStoreHob",
"BuildMemoryAllocationHob"