]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgent/SmmDebugAgentLib.c
This revision can only work with Intel(c) UDK Debugger Tool version 1.2 or greater...
[mirror_edk2.git] / SourceLevelDebugPkg / Library / DebugAgent / SmmDebugAgent / SmmDebugAgentLib.c
index f75759e815daad45415c54abdbdc6d4a165a82d6..3326c0a05fb4c0bae0d9c359b96722c8065ce417 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Debug Agent library implementition.\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
@@ -19,6 +19,27 @@ DEBUG_AGENT_MAILBOX         mLocalMailbox;
 UINTN                       mSavedDebugRegisters[6];\r
 CONST BOOLEAN               MultiProcessorDebugSupport = FALSE;\r
 \r
+/**\r
+  Read the Attach/Break-in symbols from the debug port.\r
+\r
+  @param[in]  Handle         Pointer to Debug Port handle.\r
+  @param[out] BreakSymbol    Returned break symbol.\r
+\r
+  @retval EFI_SUCCESS        Read the symbol in BreakSymbol.\r
+  @retval EFI_NOT_FOUND      No read the break symbol.\r
+\r
+**/\r
+EFI_STATUS\r
+DebugReadBreakSymbol (\r
+  IN  DEBUG_PORT_HANDLE      Handle,\r
+  OUT UINT8                  *BreakSymbol\r
+  )\r
+{\r
+  //\r
+  // Smm instance has no debug timer to poll break symbol.\r
+  //\r
+  return EFI_NOT_FOUND;\r
+}\r
 \r
 /**\r
   Get Debug Agent Mailbox pointer.\r
@@ -137,7 +158,7 @@ InitializeDebugAgent (
       DebugPortHandle = (UINT64) (UINTN)DebugPortInitialize ((DEBUG_PORT_HANDLE) (UINTN)mMailboxPointer->DebugPortHandle, NULL);\r
       mMailboxPointer->DebugPortHandle = DebugPortHandle;\r
 \r
-      if (mMailboxPointer->DebugFlag.Bits.BreakOnNextSmi == 1) {\r
+      if (mMailboxPointer->DebugFlag.BreakOnNextSmi == 1) {\r
         //\r
         // If SMM entry break is set, SMM code will be break at here.\r
         //\r