]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugMp.c
1. Remove any references on other files from DebugTimer.c, to avoid un-used symbols...
[mirror_edk2.git] / SourceLevelDebugPkg / Library / DebugAgent / DebugAgentCommon / DebugMp.c
index 6c729986cd47672f5e0ecffa2533a21e60016e7a..6ae9deef10c78cc3662c2e19b0890abc4be78bf1 100644 (file)
@@ -1,7 +1,7 @@
 /** @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
@@ -14,9 +14,9 @@
 \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
@@ -90,7 +90,7 @@ HaltOtherProcessors (
   // Send fixed IPI to other processors.\r
   //\r
   SendFixedIpiAllExcludingSelf (DEBUG_TIMER_VECTOR);\r
-  \r
+\r
 }\r
 \r
 /**\r
@@ -304,7 +304,7 @@ FindNextPendingBreakCpu (
   )\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
@@ -312,7 +312,7 @@ FindNextPendingBreakCpu (
   }\r
   return (UINT32)-1;\r
 }\r
-  \r
+\r
 /**\r
   Check if all processors are in running status.\r
 \r
@@ -326,7 +326,7 @@ IsAllCpuRunning (
   )\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
@@ -338,13 +338,13 @@ IsAllCpuRunning (
 /**\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
@@ -367,5 +367,5 @@ IsFirstBreakProcessor (
     }\r
   }\r
   return TRUE;\r
-} \r
+}\r
 \r