]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugMp.h
This revision can only work with Intel(c) UDK Debugger Tool version 1.2 or greater...
[mirror_edk2.git] / SourceLevelDebugPkg / Library / DebugAgent / DebugAgentCommon / DebugMp.h
index db124599a5308d9e84f6eecc680e5d5eb5121949..183887cc9f212144d4cc2f174c29ccecd9ef0182 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Header file for Multi-Processor support.\r
 \r
-  Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2012, 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
@@ -32,7 +32,7 @@ typedef struct {
   UINT32                    BreakAtCpuIndex;     ///< Processor index value of the current breaking CPU\r
   UINT32                    DebugTimerInitCount; ///< Record BSP's init timer count\r
   BOOLEAN                   IpiSentByAp;         ///< TRUR: IPI is sent by AP. TALSE: IPI is sent by BSP\r
-  BOOLEAN                   RunCommandSet;       ///< TRUE: RUN commmand is not executed. FALSE : RUN command is executed.\r
+  BOOLEAN                   RunCommandSet;       ///< TRUE: RUN commmand is executing. FALSE : RUN command has been executed.\r
 } DEBUG_MP_CONTEXT;\r
 \r
 extern CONST BOOLEAN               MultiProcessorDebugSupport;\r
@@ -181,7 +181,7 @@ SetDebugViewPoint (
   );\r
 \r
 /**\r
-  Initialize debug timer.\r
+  Set the IPI send by BPS/AP flag.\r
 \r
   @param[in] IpiSentByApFlag   TRUE means this IPI is sent by AP.\r
                                FALSE means this IPI is sent by BSP.\r
@@ -193,7 +193,7 @@ SetIpiSentByApFlag (
   );\r
 \r
 /**\r
-  Check if any processor breaks.\r
+  Check the next pending breaking CPU.\r
 \r
   @retval others      There is at least one processor broken, the minimum\r
                       index number of Processor returned.\r
@@ -201,7 +201,7 @@ SetIpiSentByApFlag (
 \r
 **/\r
 UINT32\r
-FindCpuNotRunning (\r
+FindNextPendingBreakCpu (\r
   VOID\r
   );\r
   \r
@@ -217,5 +217,21 @@ IsAllCpuRunning (
   VOID\r
   );\r
 \r
+/**\r
+  Check if the current processor is the first breaking processor.\r
+\r
+  If yes, halt other processors.  \r
+  \r
+  @param[in] ProcessorIndex   Processor index value.\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
+BOOLEAN\r
+IsFirstBreakProcessor (\r
+  IN UINT32              ProcessorIndex\r
+  );\r
+  \r
 #endif\r
 \r