]> git.proxmox.com Git - mirror_edk2.git/blame - SourceLevelDebugPkg/DebugAgentPei/DebugAgentPei.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[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 4Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
85f7e110 5SPDX-License-Identifier: BSD-2-Clause-Patent\r
b422b62c 6\r
7**/\r
8\r
9#include <PiPei.h>\r
10\r
11#include <Library/DebugAgentLib.h>\r
12\r
13/**\r
14 The Entry Point for Debug Agent PEI driver.\r
15\r
16 It will invoke Debug Agent Library to enable source debugging feature in PEI phase.\r
17\r
18 This function is the Entry point of the CPU I/O PEIM which installs CpuIoPpi.\r
19\r
20 @param[in] FileHandle Pointer to image file handle.\r
77695f4d 21 @param[in] PeiServices Pointer to PEI Services Table\r
b422b62c 22\r
23 @retval EFI_SUCCESS Debug Agent successfully initialized.\r
a302263e 24 @retval other Some error occurs when initialized Debug Agent.\r
b422b62c 25\r
26**/\r
27EFI_STATUS\r
28EFIAPI\r
29DebugAgentPeiInitialize (\r
30 IN EFI_PEI_FILE_HANDLE FileHandle,\r
31 IN CONST EFI_PEI_SERVICES **PeiServices\r
32 )\r
33{\r
c1e126b1 34 EFI_STATUS Status;\r
b422b62c 35\r
79ecd2db 36 Status = EFI_UNSUPPORTED;\r
b422b62c 37 InitializeDebugAgent (DEBUG_AGENT_INIT_PEI, &Status, NULL);\r
38\r
39 return Status;\r
40}\r