/** @file\r
Multi-Processor support functions implementation.\r
\r
- Copyright (c) 2010 - 2013, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
#include "DebugAgent.h"\r
\r
-DEBUG_MP_CONTEXT volatile mDebugMpContext = {0,0,0,{0},{0},0,0,0,0,FALSE,FALSE};\r
+GLOBAL_REMOVE_IF_UNREFERENCED DEBUG_MP_CONTEXT volatile mDebugMpContext = {0,0,0,{0},{0},0,0,0,0,FALSE,FALSE};\r
\r
-DEBUG_CPU_DATA volatile mDebugCpuData = {0};\r
+GLOBAL_REMOVE_IF_UNREFERENCED DEBUG_CPU_DATA volatile mDebugCpuData = {0};\r
\r
/**\r
Acquire a spin lock when Multi-processor supported.\r
// Send fixed IPI to other processors.\r
//\r
SendFixedIpiAllExcludingSelf (DEBUG_TIMER_VECTOR);\r
- \r
+\r
}\r
\r
/**\r
)\r
{\r
UINT32 Index;\r
- \r
+\r
for (Index = 0; Index < DEBUG_CPU_MAX_COUNT / 8; Index ++) {\r
if (mDebugMpContext.CpuBreakMask[Index] != 0) {\r
return (UINT32) LowBitSet32 (mDebugMpContext.CpuBreakMask[Index]) + Index * 8;\r
}\r
return (UINT32)-1;\r
}\r
- \r
+\r
/**\r
Check if all processors are in running status.\r
\r
)\r
{\r
UINTN Index;\r
- \r
+\r
for (Index = 0; Index < DEBUG_CPU_MAX_COUNT / 8; Index ++) {\r
if (mDebugMpContext.CpuStopStatusMask[Index] != 0) {\r
return FALSE;\r
/**\r
Check if the current processor is the first breaking processor.\r
\r
- If yes, halt other processors. \r
- \r
+ If yes, halt other processors.\r
+\r
@param[in] ProcessorIndex Processor index value.\r
- \r
+\r
@return TRUE This processor is the first breaking processor.\r
@return FALSE This processor is not the first breaking processor.\r
- \r
+\r
**/\r
BOOLEAN\r
IsFirstBreakProcessor (\r
}\r
}\r
return TRUE;\r
-} \r
+}\r
\r