TianoCore EDK2 master
Loading...
Searching...
No Matches
DebugServicePei.c File Reference

Go to the source code of this file.

Functions

VOID EFIAPI PeiDebugBPrint (IN UINTN ErrorLevel, IN CONST CHAR8 *Format, IN BASE_LIST Marker)
 
VOID EFIAPI PeiDebugAssert (IN CONST CHAR8 *FileName, IN UINTN LineNumber, IN CONST CHAR8 *Description)
 
EFI_STATUS EFIAPI DebugSerivceInitialize (IN EFI_PEI_FILE_HANDLE FileHandle, IN CONST EFI_PEI_SERVICES **PeiServices)
 

Variables

EDKII_DEBUG_PPI mDebugPpi
 
EFI_PEI_PPI_DESCRIPTOR mDebugServicePpi
 

Detailed Description

This driver installs gEdkiiDebugPpiGuid PPI to provide debug services for PEIMs.

Copyright (c) 2019, Intel Corporation. All rights reserved.

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

Definition in file DebugServicePei.c.

Function Documentation

◆ DebugSerivceInitialize()

EFI_STATUS EFIAPI DebugSerivceInitialize ( IN EFI_PEI_FILE_HANDLE  FileHandle,
IN CONST EFI_PEI_SERVICES **  PeiServices 
)

Entry point of Debug Service PEIM

This funciton installs EDKII DEBUG PPI

Parameters
FileHandleHandle of the file being invoked.
PeiServicesDescribes the list of possible PEI Services.
Return values
EFI_SUCESSThe entry point of Debug Service PEIM executes successfully.
OthersSome error occurs during the execution of this function.

Definition at line 87 of file DebugServicePei.c.

◆ PeiDebugAssert()

VOID EFIAPI PeiDebugAssert ( IN CONST CHAR8 *  FileName,
IN UINTN  LineNumber,
IN CONST CHAR8 *  Description 
)

Print an assert message containing a filename, line number, and description. This may be followed by a breakpoint or a dead loop.

Parameters
[in]FileNameThe pointer to the name of the source file that generated the assert condition.
[in]LineNumberThe line number in the source file that generated the assert condition
[in]DescriptionThe pointer to the description of the assert condition.

Definition at line 64 of file DebugServicePei.c.

◆ PeiDebugBPrint()

VOID EFIAPI PeiDebugBPrint ( IN UINTN  ErrorLevel,
IN CONST CHAR8 *  Format,
IN BASE_LIST  Marker 
)

Print a debug message to debug output device if the specified error level is enabled.

Parameters
[in]ErrorLevelThe error level of the debug message.
[in]FormatFormat string for the debug message to print.
[in]MarkerBASE_LIST marker for the variable argument list.

Definition at line 42 of file DebugServicePei.c.

Variable Documentation

◆ mDebugPpi

EDKII_DEBUG_PPI mDebugPpi
Initial value:
= {
}
VOID EFIAPI PeiDebugAssert(IN CONST CHAR8 *FileName, IN UINTN LineNumber, IN CONST CHAR8 *Description)
VOID EFIAPI PeiDebugBPrint(IN UINTN ErrorLevel, IN CONST CHAR8 *Format, IN BASE_LIST Marker)

Definition at line 20 of file DebugServicePei.c.

◆ mDebugServicePpi

EFI_PEI_PPI_DESCRIPTOR mDebugServicePpi
Initial value:
= {
(EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),
&gEdkiiDebugPpiGuid,
(VOID *)&mDebugPpi
}

Definition at line 25 of file DebugServicePei.c.