]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.c
MdeModulePkg: Change OPTIONAL keyword usage style
[mirror_edk2.git] / MdeModulePkg / Library / DebugAgentLibNull / DebugAgentLibNull.c
CommitLineData
fe92ab29 1/** @file\r
2 Debug Agent library implementition with empty functions.\r
3\r
cd5ebaa0 4 Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
9d510e61 5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
fe92ab29 6\r
7**/\r
8\r
4cf7e038 9#include <Library/DebugAgentLib.h>\r
10\r
fe92ab29 11/**\r
12 Initialize debug agent.\r
13\r
4cf7e038 14 This function is used to set up debug environment to support source level debugging.\r
15 If certain Debug Agent Library instance has to save some private data in the stack,\r
16 this function must work on the mode that doesn't return to the caller, then\r
17 the caller needs to wrap up all rest of logic after InitializeDebugAgent() into one\r
18 function and pass it into InitializeDebugAgent(). InitializeDebugAgent() is\r
19 responsible to invoke the passing-in function at the end of InitializeDebugAgent().\r
20\r
3b28e744 21 If the parameter Function is not NULL, Debug Agent Library instance will invoke it by\r
4cf7e038 22 passing in the Context to be its parameter.\r
fe92ab29 23\r
4cf7e038 24 If Function() is NULL, Debug Agent Library instance will return after setup debug\r
25 environment.\r
26\r
27 @param[in] InitFlag Init flag is used to decide the initialize process.\r
28 @param[in] Context Context needed according to InitFlag; it was optional.\r
29 @param[in] Function Continue function called by debug agent library; it was\r
30 optional.\r
fe92ab29 31\r
32**/\r
33VOID\r
34EFIAPI\r
35InitializeDebugAgent (\r
36 IN UINT32 InitFlag,\r
e3917e22 37 IN VOID *Context OPTIONAL,\r
4cf7e038 38 IN DEBUG_AGENT_CONTINUE Function OPTIONAL\r
fe92ab29 39 )\r
40{\r
4cf7e038 41 if (Function != NULL) {\r
42 Function (Context);\r
43 }\r
fe92ab29 44}\r
45\r
46/**\r
e7af83ae 47 Enable/Disable the interrupt of debug timer and return the interrupt state\r
48 prior to the operation.\r
fe92ab29 49\r
50 If EnableStatus is TRUE, enable the interrupt of debug timer.\r
51 If EnableStatus is FALSE, disable the interrupt of debug timer.\r
52\r
53 @param[in] EnableStatus Enable/Disable.\r
54\r
e7af83ae 55 @return FALSE always.\r
56\r
fe92ab29 57**/\r
e7af83ae 58BOOLEAN\r
fe92ab29 59EFIAPI\r
e7af83ae 60SaveAndSetDebugTimerInterrupt (\r
fe92ab29 61 IN BOOLEAN EnableStatus\r
62 )\r
63{\r
e7af83ae 64 return FALSE;\r
fe92ab29 65}\r