From ca337d4cc2eb16b773e71c96561e84f18b1edfb3 Mon Sep 17 00:00:00 2001 From: Aaron Pop Date: Fri, 6 Sep 2024 16:39:32 -0700 Subject: [PATCH] SourceLevelDebugPkg DxeDebugAgent: Handle additional initialize cases. Handle both DEBUG_AGENT_INIT_REINITIALIZE and DEBUG_AGENT_INIT_DXE_CORE_LATE InitFlags to prevent an assert. No additional initlization takes place for these cases. Signed-off-by: Aaron Pop --- .../Library/DebugAgent/DxeDebugAgent/DxeDebugAgentLib.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgent/DxeDebugAgentLib.c b/SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgent/DxeDebugAgentLib.c index a41bba2c4ba9..fcb1b631c1ed 100644 --- a/SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgent/DxeDebugAgentLib.c +++ b/SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgent/DxeDebugAgentLib.c @@ -2,6 +2,7 @@ Debug Agent library implementation for Dxe Core and Dxr modules. Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.
+ Copyright (c) Microsoft Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent **/ @@ -537,6 +538,11 @@ InitializeDebugAgent ( break; + case DEBUG_AGENT_INIT_REINITIALIZE: + case DEBUG_AGENT_INIT_DXE_CORE_LATE: + + break; + default: // // Only DEBUG_AGENT_INIT_PREMEM_SEC and DEBUG_AGENT_INIT_POSTMEM_SEC are allowed for this