X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FLibrary%2FDxeHobLib%2FHobLib.c;h=dfd4bed67aa3cf387a403a7a11bd00d0da34d9fd;hp=e01dc80c6237e5637819e56e44fa6b662033eb9d;hb=58380e9c6174f23df78f777b4209c0fd75245cda;hpb=3b33c6d65d88da47fe059eff5cd92b39b6d0f42e diff --git a/MdePkg/Library/DxeHobLib/HobLib.c b/MdePkg/Library/DxeHobLib/HobLib.c index e01dc80c62..dfd4bed67a 100644 --- a/MdePkg/Library/DxeHobLib/HobLib.c +++ b/MdePkg/Library/DxeHobLib/HobLib.c @@ -152,7 +152,7 @@ GetFirstHob ( its HOB type is EFI_HOB_TYPE_GUID_EXTENSION and its GUID Name equals to the input Guid. If there does not exist such HOB from the starting HOB pointer, it will return NULL. Caller is required to apply GET_GUID_HOB_DATA () and GET_GUID_HOB_DATA_SIZE () - to extract the data section and its size info respectively. + to extract the data section and its size information, respectively. In contrast with macro GET_NEXT_HOB(), this function does not skip the starting HOB pointer unconditionally: it returns HobStart back if HobStart itself meets the requirement; caller is required to use GET_NEXT_HOB() if it wishes to skip current HobStart. @@ -193,7 +193,7 @@ GetNextGuidHob ( its HOB type is EFI_HOB_TYPE_GUID_EXTENSION and its GUID Name equals to the input Guid. If there does not exist such HOB from the starting HOB pointer, it will return NULL. Caller is required to apply GET_GUID_HOB_DATA () and GET_GUID_HOB_DATA_SIZE () - to extract the data section and its size info respectively. + to extract the data section and its size information, respectively. If the pointer to the HOB list is NULL, then ASSERT(). If Guid is NULL, then ASSERT().