TianoCore EDK2 master
Loading...
Searching...
No Matches
DxeHobListLib.c File Reference
#include <Uefi.h>

Go to the source code of this file.

Functions

BOOLEAN LocalCompareGuid (IN CONST GUID *Guid1, IN CONST GUID *Guid2)
 
EFI_STATUS EFIAPI DxeHobListLibConstructor (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

VOID * gHobList = NULL
 

Detailed Description

This library retrieve the EFI_BOOT_SERVICES pointer from EFI system table in library's constructor.

Copyright (c) 2021, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file DxeHobListLib.c.

Function Documentation

◆ DxeHobListLibConstructor()

EFI_STATUS EFIAPI DxeHobListLibConstructor ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)
Parameters
ImageHandleThe firmware allocated handle for the EFI image.
SystemTableA pointer to the EFI System Table.
Return values
EFI_SUCCESSThe constructor always returns EFI_SUCCESS.

Definition at line 50 of file DxeHobListLib.c.

◆ LocalCompareGuid()

BOOLEAN LocalCompareGuid ( IN CONST GUID Guid1,
IN CONST GUID Guid2 
)

Local implementation of GUID comparasion that doesn't depend on DebugLib::ASSERT().

This function compares Guid1 to Guid2. If the GUIDs are identical then TRUE is returned. If there are any bit differences in the two GUIDs, then FALSE is returned.

Parameters
Guid1A pointer to a 128 bit GUID.
Guid2A pointer to a 128 bit GUID.
Return values
TRUEGuid1 and Guid2 are identical.
FALSEGuid1 and Guid2 are not identical.

Definition at line 27 of file DxeHobListLib.c.

Variable Documentation

◆ gHobList

VOID* gHobList = NULL

Global variable that contains a pointer to the Hob List passed into the DXE Core entry point.

Definition at line 12 of file DxeHobListLib.c.