]> git.proxmox.com Git - mirror_edk2.git/commitdiff
SourceLevelDebugPkg DebugAgentLib: Rename IsBsp to DebugAgentIsBsp
authorStar Zeng <star.zeng@intel.com>
Fri, 2 Feb 2018 07:34:48 +0000 (15:34 +0800)
committerStar Zeng <star.zeng@intel.com>
Thu, 8 Feb 2018 08:43:54 +0000 (16:43 +0800)
For avoiding function name confliction,
rename IsBsp to DebugAgentIsBsp.

Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Hao Wu <hao.a.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c
SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugMp.c
SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugMp.h

index 36b1ef924cd2730e4c3007c12108bcc233646ee1..0a021307dcdc36e651e85d8e6db350220e04f619 100644 (file)
@@ -4,7 +4,7 @@
   read/write debug packet to communication with HOST based on transfer\r
   protocol.\r
 \r
-  Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2018, 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
@@ -2485,7 +2485,7 @@ InterruptProcess (
     AcquireMpSpinLock (&mDebugMpContext.DebugPortSpinLock);\r
 \r
     if (MultiProcessorDebugSupport()) {\r
-      if (IsBsp (ProcessorIndex)) {\r
+      if (DebugAgentIsBsp (ProcessorIndex)) {\r
         //\r
         // If current processor is BSP, check Apic timer's init count if changed,\r
         // it may be re-written when switching BSP.\r
@@ -2498,7 +2498,7 @@ InterruptProcess (
         }\r
       }\r
 \r
-      if (!IsBsp (ProcessorIndex) || mDebugMpContext.IpiSentByAp) {\r
+      if (!DebugAgentIsBsp (ProcessorIndex) || mDebugMpContext.IpiSentByAp) {\r
         ReleaseMpSpinLock (&mDebugMpContext.DebugPortSpinLock);\r
         //\r
         // If current processor is not BSP or this is one IPI sent by AP\r
index d49d4ee32347f6481f0d320dbb94aeb03b1f57f4..e3ed08db4946487cb0ec50c657b4d5e2de67dc89 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Multi-Processor support functions implementation.\r
 \r
-  Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2018, 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
@@ -75,7 +75,7 @@ HaltOtherProcessors (
   )\r
 {\r
   DebugAgentMsgPrint (DEBUG_AGENT_INFO, "processor[%x]:Try to halt other processors.\n", CurrentProcessorIndex);\r
-  if (!IsBsp (CurrentProcessorIndex)) {\r
+  if (!DebugAgentIsBsp (CurrentProcessorIndex)) {\r
     SetIpiSentByApFlag (TRUE);;\r
   }\r
 \r
@@ -137,7 +137,7 @@ GetProcessorIndex (
 \r
 **/\r
 BOOLEAN\r
-IsBsp (\r
+DebugAgentIsBsp (\r
   IN UINT32  ProcessorIndex\r
   )\r
 {\r
index 5bb50960ca72b57763e68d42d553de59d3b1a829..f0cb3f6c1daa066719adacfc9ed2ffe5828bc570 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Header file for Multi-Processor support.\r
 \r
-  Copyright (c) 2010 - 2013, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2018, 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
@@ -96,7 +96,7 @@ ReleaseMpSpinLock (
 \r
 **/\r
 BOOLEAN\r
-IsBsp (\r
+DebugAgentIsBsp (\r
   IN UINT32             ProcessorIndex\r
   );\r
 \r