• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /** @file
2   Initialize Debug Agent in PEI by invoking Debug Agent Library.
3 
4 Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution.  The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9 
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT 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 **/
33 EFI_STATUS
34 EFIAPI
DebugAgentPeiInitialize(IN EFI_PEI_FILE_HANDLE FileHandle,IN CONST EFI_PEI_SERVICES ** PeiServices)35 DebugAgentPeiInitialize (
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 }
47