]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.c
MdeModulePkg/S3SmmInitDone.h: Fix copyright coding style error.
[mirror_edk2.git] / MdeModulePkg / Library / DebugAgentLibNull / DebugAgentLibNull.c
... / ...
CommitLineData
1/** @file\r
2 Debug Agent library implementition with empty functions.\r
3\r
4 Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
5 This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#include <Library/DebugAgentLib.h>\r
16\r
17/**\r
18 Initialize debug agent.\r
19\r
20 This function is used to set up debug environment to support source level debugging.\r
21 If certain Debug Agent Library instance has to save some private data in the stack,\r
22 this function must work on the mode that doesn't return to the caller, then\r
23 the caller needs to wrap up all rest of logic after InitializeDebugAgent() into one\r
24 function and pass it into InitializeDebugAgent(). InitializeDebugAgent() is\r
25 responsible to invoke the passing-in function at the end of InitializeDebugAgent().\r
26\r
27 If the parameter Function is not NULL, Debug Agent Library instance will invoke it by\r
28 passing in the Context to be its parameter.\r
29\r
30 If Function() is NULL, Debug Agent Library instance will return after setup debug\r
31 environment.\r
32\r
33 @param[in] InitFlag Init flag is used to decide the initialize process.\r
34 @param[in] Context Context needed according to InitFlag; it was optional.\r
35 @param[in] Function Continue function called by debug agent library; it was\r
36 optional.\r
37\r
38**/\r
39VOID\r
40EFIAPI\r
41InitializeDebugAgent (\r
42 IN UINT32 InitFlag,\r
43 IN VOID *Context, OPTIONAL\r
44 IN DEBUG_AGENT_CONTINUE Function OPTIONAL\r
45 )\r
46{\r
47 if (Function != NULL) {\r
48 Function (Context);\r
49 }\r
50}\r
51\r
52/**\r
53 Enable/Disable the interrupt of debug timer and return the interrupt state\r
54 prior to the operation.\r
55\r
56 If EnableStatus is TRUE, enable the interrupt of debug timer.\r
57 If EnableStatus is FALSE, disable the interrupt of debug timer.\r
58\r
59 @param[in] EnableStatus Enable/Disable.\r
60\r
61 @return FALSE always.\r
62\r
63**/\r
64BOOLEAN\r
65EFIAPI\r
66SaveAndSetDebugTimerInterrupt (\r
67 IN BOOLEAN EnableStatus\r
68 )\r
69{\r
70 return FALSE;\r
71}\r
72\r