2 Debug Agent library implementition with empty functions.
4 Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #include <Library/DebugAgentLib.h>
12 Initialize debug agent.
14 This function is used to set up debug environment to support source level debugging.
15 If certain Debug Agent Library instance has to save some private data in the stack,
16 this function must work on the mode that doesn't return to the caller, then
17 the caller needs to wrap up all rest of logic after InitializeDebugAgent() into one
18 function and pass it into InitializeDebugAgent(). InitializeDebugAgent() is
19 responsible to invoke the passing-in function at the end of InitializeDebugAgent().
21 If the parameter Function is not NULL, Debug Agent Library instance will invoke it by
22 passing in the Context to be its parameter.
24 If Function() is NULL, Debug Agent Library instance will return after setup debug
27 @param[in] InitFlag Init flag is used to decide the initialize process.
28 @param[in] Context Context needed according to InitFlag; it was optional.
29 @param[in] Function Continue function called by debug agent library; it was
35 InitializeDebugAgent (
37 IN VOID
*Context
, OPTIONAL
38 IN DEBUG_AGENT_CONTINUE Function OPTIONAL
41 if (Function
!= NULL
) {
47 Enable/Disable the interrupt of debug timer and return the interrupt state
48 prior to the operation.
50 If EnableStatus is TRUE, enable the interrupt of debug timer.
51 If EnableStatus is FALSE, disable the interrupt of debug timer.
53 @param[in] EnableStatus Enable/Disable.
60 SaveAndSetDebugTimerInterrupt (
61 IN BOOLEAN EnableStatus