blob: 2dcc7a78d16ad8a1867631b6abec33d0f66f6611 [file] [log] [blame]
Vishal Bhoj82c80712015-12-15 21:13:33 +05301/** @file
2 Initialize Debug Agent in PEI by invoking Debug Agent Library.
3
4Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>
5This program and the accompanying materials
6are licensed and made available under the terms and conditions of the BSD License
7which accompanies this distribution. The full text of the license may be found at
8http://opensource.org/licenses/bsd-license.php
9
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13**/
14
15#include <PiPei.h>
16
17#include <Library/DebugAgentLib.h>
18
19/**
20 The Entry Point for Debug Agent PEI driver.
21
22 It will invoke Debug Agent Library to enable source debugging feature in PEI phase.
23
24 This function is the Entry point of the CPU I/O PEIM which installs CpuIoPpi.
25
26 @param[in] FileHandle Pointer to image file handle.
27 @param[in] PeiServices Pointer to PEI Services Table
28
29 @retval EFI_SUCCESS Debug Agent successfully initialized.
30 @retval other Some error occurs when initialzed Debug Agent.
31
32**/
33EFI_STATUS
34EFIAPI
35DebugAgentPeiInitialize (
36 IN EFI_PEI_FILE_HANDLE FileHandle,
37 IN CONST EFI_PEI_SERVICES **PeiServices
38 )
39{
40 EFI_STATUS Status;
41
42 Status = EFI_UNSUPPORTED;
43 InitializeDebugAgent (DEBUG_AGENT_INIT_PEI, &Status, NULL);
44
45 return Status;
46}