2 This library retrieve the EFI_BOOT_SERVICES pointer from EFI system table in
5 Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
13 VOID
*gHobList
= NULL
;
16 Local implementation of GUID comparasion that doesn't depend on DebugLib::ASSERT().
18 This function compares Guid1 to Guid2. If the GUIDs are identical then TRUE is returned.
19 If there are any bit differences in the two GUIDs, then FALSE is returned.
21 @param Guid1 A pointer to a 128 bit GUID.
22 @param Guid2 A pointer to a 128 bit GUID.
24 @retval TRUE Guid1 and Guid2 are identical.
25 @retval FALSE Guid1 and Guid2 are not identical.
36 Left
= (UINT64
*) Guid1
;
37 Right
= (UINT64
*) Guid2
;
39 return (BOOLEAN
) (Left
[0] == Right
[0] && Left
[1] == Right
[1]);
43 @param ImageHandle The firmware allocated handle for the EFI image.
44 @param SystemTable A pointer to the EFI System Table.
46 @retval EFI_SUCCESS The constructor always returns EFI_SUCCESS.
51 DxeHobListLibConstructor (
52 IN EFI_HANDLE ImageHandle
,
53 IN EFI_SYSTEM_TABLE
*SystemTable
58 for (Index
= 0; Index
< SystemTable
->NumberOfTableEntries
; Index
++) {
59 if (LocalCompareGuid (&gEfiHobListGuid
, &SystemTable
->ConfigurationTable
[Index
].VendorGuid
)) {
60 gHobList
= SystemTable
->ConfigurationTable
[Index
].VendorTable
;