DebugAgentPei.c 1.0 KB

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