mirror of
				https://gitlab.com/qemu-project/edk2.git
				synced 2025-10-30 07:56:39 +08:00 
			
		
		
		
	MdeModulePkg DxeMain: Add late initialization for Debug Agent.
Add a late initialize in DxeMain for the debug agent. This is required for the debug agent to be able to setup events to handle image loads, exit boot services, and other important callbacks. Define a reinitialize debug agent. Signed-off-by: Aaron Pop <aaronpop@microsoft.com>
This commit is contained in:
		 Chris Fernald
					Chris Fernald
				
			
				
					committed by
					
						![mergify[bot]](/assets/img/avatar_default.png) mergify[bot]
						mergify[bot]
					
				
			
			
				
	
			
			
			![mergify[bot]](/assets/img/avatar_default.png) mergify[bot]
						mergify[bot]
					
				
			
						parent
						
							e99d532fd7
						
					
				
				
					commit
					17e67d26d9
				
			| @ -463,6 +463,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 (); | ||||
|  | ||||
| @ -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 | ||||
| #define DEBUG_AGENT_INIT_DXE_CORE_LATE        14 | ||||
|  | ||||
| // | ||||
| // Context for DEBUG_AGENT_INIT_POSTMEM_SEC | ||||
|  | ||||
		Reference in New Issue
	
	Block a user