]>
Commit | Line | Data |
---|---|---|
fe92ab29 | 1 | /** @file\r |
2 | Debug Agent library implementition with empty functions.\r | |
3 | \r | |
cd5ebaa0 HT |
4 | Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r |
5 | This program and the accompanying materials\r | |
fe92ab29 | 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 | |
4cf7e038 | 15 | #include <Library/DebugAgentLib.h>\r |
16 | \r | |
fe92ab29 | 17 | /**\r |
18 | Initialize debug agent.\r | |
19 | \r | |
4cf7e038 | 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 | |
3b28e744 | 27 | If the parameter Function is not NULL, Debug Agent Library instance will invoke it by\r |
4cf7e038 | 28 | passing in the Context to be its parameter.\r |
fe92ab29 | 29 | \r |
4cf7e038 | 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 | |
fe92ab29 | 37 | \r |
38 | **/\r | |
39 | VOID\r | |
40 | EFIAPI\r | |
41 | InitializeDebugAgent (\r | |
42 | IN UINT32 InitFlag,\r | |
4cf7e038 | 43 | IN VOID *Context, OPTIONAL\r |
44 | IN DEBUG_AGENT_CONTINUE Function OPTIONAL\r | |
fe92ab29 | 45 | )\r |
46 | {\r | |
4cf7e038 | 47 | if (Function != NULL) {\r |
48 | Function (Context);\r | |
49 | }\r | |
fe92ab29 | 50 | }\r |
51 | \r | |
52 | /**\r | |
e7af83ae | 53 | Enable/Disable the interrupt of debug timer and return the interrupt state\r |
54 | prior to the operation.\r | |
fe92ab29 | 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 | |
e7af83ae | 61 | @return FALSE always.\r |
62 | \r | |
fe92ab29 | 63 | **/\r |
e7af83ae | 64 | BOOLEAN\r |
fe92ab29 | 65 | EFIAPI\r |
e7af83ae | 66 | SaveAndSetDebugTimerInterrupt (\r |
fe92ab29 | 67 | IN BOOLEAN EnableStatus\r |
68 | )\r | |
69 | {\r | |
e7af83ae | 70 | return FALSE;\r |
fe92ab29 | 71 | }\r |
72 | \r |