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