TianoCore EDK2 master
Loading...
Searching...
No Matches
DebugLibConstructor.c File Reference
#include <Uefi.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI DxeDebugLibConstructor (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 
EFI_STATUS EFIAPI DxeDebugLibDestructor (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

BOOLEAN mPostEBS = FALSE
 
EFI_BOOT_SERVICESmDebugBS
 

Detailed Description

UEFI Dxe DebugLib constructor that prevent some debug service after ExitBootServices event, because some pointer is nulled at that phase.

Copyright (c) 2018, Microsoft Corporation Copyright (c) 2015 - 2019, Intel Corporation. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file DebugLibConstructor.c.

Function Documentation

◆ DxeDebugLibConstructor()

EFI_STATUS EFIAPI DxeDebugLibConstructor ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

The constructor gets the pointers to boot services table. And create a event to indicate it is after ExitBootServices.

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 61 of file DebugLibConstructor.c.

◆ DxeDebugLibDestructor()

EFI_STATUS EFIAPI DxeDebugLibDestructor ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

The destructor closes Exit Boot Services Event.

Parameters
ImageHandleThe firmware allocated handle for the EFI image.
SystemTableA pointer to the EFI System Table.
Return values
EFI_SUCCESSThe destructor always returns EFI_SUCCESS.

Definition at line 90 of file DebugLibConstructor.c.

Variable Documentation

◆ mDebugBS

EFI_BOOT_SERVICES* mDebugBS

Definition at line 27 of file DebugLibConstructor.c.

◆ mPostEBS

BOOLEAN mPostEBS = FALSE

Definition at line 18 of file DebugLibConstructor.c.