]>
Commit | Line | Data |
---|---|---|
b422b62c | 1 | /** @file\r |
2 | Initialize Debug Agent in PEI by invoking Debug Agent Library.\r | |
3 | \r | |
79ecd2db | 4 | Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r |
b422b62c | 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 <PiPei.h>\r | |
16 | \r | |
17 | #include <Library/DebugAgentLib.h>\r | |
18 | \r | |
19 | /**\r | |
20 | The Entry Point for Debug Agent PEI driver.\r | |
21 | \r | |
22 | It will invoke Debug Agent Library to enable source debugging feature in PEI phase.\r | |
23 | \r | |
24 | This function is the Entry point of the CPU I/O PEIM which installs CpuIoPpi.\r | |
25 | \r | |
26 | @param[in] FileHandle Pointer to image file handle.\r | |
27 | @param[in] PeiServices Pointer to PEI Services Table \r | |
28 | \r | |
29 | @retval EFI_SUCCESS Debug Agent successfully initialized.\r | |
30 | @retval other Some error occurs when initialzed Debug Agent.\r | |
31 | \r | |
32 | **/\r | |
33 | EFI_STATUS\r | |
34 | EFIAPI\r | |
35 | DebugAgentPeiInitialize (\r | |
36 | IN EFI_PEI_FILE_HANDLE FileHandle,\r | |
37 | IN CONST EFI_PEI_SERVICES **PeiServices\r | |
38 | )\r | |
39 | {\r | |
40 | EFI_STATUS Status;\r | |
41 | \r | |
79ecd2db | 42 | Status = EFI_UNSUPPORTED;\r |
b422b62c | 43 | InitializeDebugAgent (DEBUG_AGENT_INIT_PEI, &Status, NULL);\r |
44 | \r | |
45 | return Status;\r | |
46 | }\r |