Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MdeModulePkg DxeMain: Add late initialization for Debug Agent. #6032

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,11 @@ DxeMain (
Status = CoreInitializeEventServices ();
ASSERT_EFI_ERROR (Status);

//
// Give the debug agent a chance to initialize with events.
//
InitializeDebugAgent (DEBUG_AGENT_INIT_DXE_CORE_LATE, HobStart, NULL);

MemoryProfileInstallProtocol ();

CoreInitializeMemoryAttributesTable ();
Expand Down
2 changes: 2 additions & 0 deletions MdeModulePkg/Include/Library/DebugAgentLib.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
#define DEBUG_AGENT_INIT_DXE_LOAD 10
#define DEBUG_AGENT_INIT_DXE_UNLOAD 11
#define DEBUG_AGENT_INIT_THUNK_PEI_IA32TOX64 12
#define DEBUG_AGENT_INIT_REINITIALIZE 13
apop5 marked this conversation as resolved.
Show resolved Hide resolved
#define DEBUG_AGENT_INIT_DXE_CORE_LATE 14

//
// Context for DEBUG_AGENT_INIT_POSTMEM_SEC
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Debug Agent library implementation for Dxe Core and Dxr modules.

Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
Copyright (c) Microsoft Corporation.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent

**/
Expand Down Expand Up @@ -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
Expand Down
Loading