From 16f504a9dca3fe3b70568f67b7d41241ae485288 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 18:49:04 +0200 Subject: Adding upstream version 7.0.6-dfsg. Signed-off-by: Daniel Baumann --- .../DebugAgentPei/DebugAgentPei.c | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/VBox/Devices/EFI/Firmware/SourceLevelDebugPkg/DebugAgentPei/DebugAgentPei.c (limited to 'src/VBox/Devices/EFI/Firmware/SourceLevelDebugPkg/DebugAgentPei/DebugAgentPei.c') diff --git a/src/VBox/Devices/EFI/Firmware/SourceLevelDebugPkg/DebugAgentPei/DebugAgentPei.c b/src/VBox/Devices/EFI/Firmware/SourceLevelDebugPkg/DebugAgentPei/DebugAgentPei.c new file mode 100644 index 00000000..bf409734 --- /dev/null +++ b/src/VBox/Devices/EFI/Firmware/SourceLevelDebugPkg/DebugAgentPei/DebugAgentPei.c @@ -0,0 +1,40 @@ +/** @file + Initialize Debug Agent in PEI by invoking Debug Agent Library. + +Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.
+SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#include + +#include + +/** + The Entry Point for Debug Agent PEI driver. + + It will invoke Debug Agent Library to enable source debugging feature in PEI phase. + + This function is the Entry point of the CPU I/O PEIM which installs CpuIoPpi. + + @param[in] FileHandle Pointer to image file handle. + @param[in] PeiServices Pointer to PEI Services Table + + @retval EFI_SUCCESS Debug Agent successfully initialized. + @retval other Some error occurs when initialized Debug Agent. + +**/ +EFI_STATUS +EFIAPI +DebugAgentPeiInitialize ( + IN EFI_PEI_FILE_HANDLE FileHandle, + IN CONST EFI_PEI_SERVICES **PeiServices + ) +{ + EFI_STATUS Status; + + Status = EFI_UNSUPPORTED; + InitializeDebugAgent (DEBUG_AGENT_INIT_PEI, &Status, NULL); + + return Status; +} -- cgit v1.2.3