UefiCpuPkg/PiSmmCpuDxeSmm: Check SMM Debug Agent support or not
This patch is to check SMM Debug Agent support or not before InitializeDebugAgent. Cc: Laszlo Ersek <lersek@redhat.com> Cc: Eric Dong <eric.dong@intel.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Zeng Star <star.zeng@intel.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: Rahul Kumar <rahul1.kumar@intel.com> Signed-off-by: Jiaxin Wu <jiaxin.wu@intel.com> Reviewed-by: Ray Ni <ray.ni@Intel.com>
This commit is contained in:
@@ -476,10 +476,12 @@ BSPHandler (
|
||||
//
|
||||
*mSmmMpSyncData->InsideSmm = TRUE;
|
||||
|
||||
//
|
||||
// Initialize Debug Agent to start source level debug in BSP handler
|
||||
//
|
||||
InitializeDebugAgent (DEBUG_AGENT_INIT_ENTER_SMI, NULL, NULL);
|
||||
if (mSmmDebugAgentSupport) {
|
||||
//
|
||||
// Initialize Debug Agent to start source level debug in BSP handler
|
||||
//
|
||||
InitializeDebugAgent (DEBUG_AGENT_INIT_ENTER_SMI, NULL, NULL);
|
||||
}
|
||||
|
||||
//
|
||||
// Mark this processor's presence
|
||||
@@ -648,11 +650,13 @@ BSPHandler (
|
||||
SmmCpuSyncWaitForAPs (mSmmMpSyncData->SyncContext, ApCount, CpuIndex);
|
||||
}
|
||||
|
||||
//
|
||||
// Stop source level debug in BSP handler, the code below will not be
|
||||
// debugged.
|
||||
//
|
||||
InitializeDebugAgent (DEBUG_AGENT_INIT_EXIT_SMI, NULL, NULL);
|
||||
if (mSmmDebugAgentSupport) {
|
||||
//
|
||||
// Stop source level debug in BSP handler, the code below will not be
|
||||
// debugged.
|
||||
//
|
||||
InitializeDebugAgent (DEBUG_AGENT_INIT_EXIT_SMI, NULL, NULL);
|
||||
}
|
||||
|
||||
//
|
||||
// Signal APs to Reset states/semaphore for this processor
|
||||
|
Reference in New Issue
Block a user