TianoCore EDK2 master
|
#include <Library/DebugAgentLib.h>
Go to the source code of this file.
Functions | |
VOID EFIAPI | InitializeDebugAgent (IN UINT32 InitFlag, IN VOID *Context OPTIONAL, IN DEBUG_AGENT_CONTINUE Function OPTIONAL) |
BOOLEAN EFIAPI | SaveAndSetDebugTimerInterrupt (IN BOOLEAN EnableStatus) |
Debug Agent library implementition with empty functions.
Copyright (c) 2010, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file DebugAgentLibNull.c.
VOID EFIAPI InitializeDebugAgent | ( | IN UINT32 | InitFlag, |
IN VOID *Context | OPTIONAL, | ||
IN DEBUG_AGENT_CONTINUE Function | OPTIONAL | ||
) |
Initialize debug agent.
This function is used to set up debug environment to support source level debugging. If certain Debug Agent Library instance has to save some private data in the stack, this function must work on the mode that doesn't return to the caller, then the caller needs to wrap up all rest of logic after InitializeDebugAgent() into one function and pass it into InitializeDebugAgent(). InitializeDebugAgent() is responsible to invoke the passing-in function at the end of InitializeDebugAgent().
If the parameter Function is not NULL, Debug Agent Library instance will invoke it by passing in the Context to be its parameter.
If Function() is NULL, Debug Agent Library instance will return after setup debug environment.
If InitFlag is DEBUG_AGENT_INIT_SMM, Context must point to a BOOLEAN if it's not NULL, which indicates SMM Debug Agent supported or not.
[in] | InitFlag | Init flag is used to decide the initialize process. |
[in] | Context | Context needed according to InitFlag; it was optional. |
[in] | Function | Continue function called by debug agent library; it was optional. |
Definition at line 38 of file DebugAgentLibNull.c.
BOOLEAN EFIAPI SaveAndSetDebugTimerInterrupt | ( | IN BOOLEAN | EnableStatus | ) |
Enable/Disable the interrupt of debug timer and return the interrupt state prior to the operation.
If EnableStatus is TRUE, enable the interrupt of debug timer. If EnableStatus is FALSE, disable the interrupt of debug timer.
[in] | EnableStatus | Enable/Disable. |
Definition at line 72 of file DebugAgentLibNull.c.