]> git.proxmox.com Git - mirror_edk2.git/blame - SourceLevelDebugPkg/DebugAgentPei/DebugAgentPei.c
BaseTools/BinToPcd: Fix Python 2.7.x compatibility issue
[mirror_edk2.git] / SourceLevelDebugPkg / DebugAgentPei / DebugAgentPei.c
CommitLineData
b422b62c 1/** @file\r
2 Initialize Debug Agent in PEI by invoking Debug Agent Library.\r
3\r
77695f4d
LG
4Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
5This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
b422b62c 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
77695f4d 27 @param[in] PeiServices Pointer to PEI Services Table\r
b422b62c 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
33EFI_STATUS\r
34EFIAPI\r
35DebugAgentPeiInitialize (\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