12#define DEBUG_CPU_MAX_COUNT 256
16 UINT16 ApicID[DEBUG_CPU_MAX_COUNT];
23 UINT8 CpuBreakMask[DEBUG_CPU_MAX_COUNT/8];
24 UINT8 CpuStopStatusMask[DEBUG_CPU_MAX_COUNT/8];
44 IN UINT32 CurrentProcessorIndex
94 IN UINT32 ProcessorIndex
107 IN UINT32 ProcessorIndex,
121 IN UINT32 ProcessorIndex,
136 IN UINT32 ProcessorIndex
148 IN BOOLEAN RunningFlag
159 IN UINT32 ProcessorIndex
171 IN BOOLEAN IpiSentByApFlag
212 IN UINT32 ProcessorIndex
VOID SetCpuStopFlagByIndex(IN UINT32 ProcessorIndex, IN BOOLEAN StopFlag)
VOID SetDebugViewPoint(IN UINT32 ProcessorIndex)
UINT32 FindNextPendingBreakCpu(VOID)
VOID HaltOtherProcessors(IN UINT32 CurrentProcessorIndex)
UINT32 GetProcessorIndex(VOID)
BOOLEAN IsFirstBreakProcessor(IN UINT32 ProcessorIndex)
BOOLEAN DebugAgentIsBsp(IN UINT32 ProcessorIndex)
VOID ReleaseMpSpinLock(IN OUT SPIN_LOCK *MpSpinLock)
VOID AcquireMpSpinLock(IN OUT SPIN_LOCK *MpSpinLock)
VOID SetCpuRunningFlag(IN BOOLEAN RunningFlag)
BOOLEAN IsAllCpuRunning(VOID)
VOID SetCpuBreakFlagByIndex(IN UINT32 ProcessorIndex, IN BOOLEAN BreakFlag)
BOOLEAN IsCpuStopped(IN UINT32 ProcessorIndex)
VOID SetIpiSentByApFlag(IN BOOLEAN IpiSentByApFlag)
UINT32 CpuCount
Processor count.
UINT32 ViewPointIndex
Current view point to be debugged.
SPIN_LOCK MpContextSpinLock
Lock for writing MP context.
BOOLEAN IpiSentByAp
TRUE: IPI is sent by AP. FALSE: IPI is sent by BSP.
SPIN_LOCK MailboxSpinLock
Lock for accessing mail box.
UINT32 DebugTimerInitCount
Record BSP's init timer count.
UINT32 BspIndex
Processor index value of BSP.
BOOLEAN RunCommandSet
TRUE: RUN command is executing. FALSE: RUN command has been executed.
SPIN_LOCK DebugPortSpinLock
Lock for access debug port.
UINT32 BreakAtCpuIndex
Processor index value of the current breaking CPU.