]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgent/DxeDebugAgentLib.c
SourceLevelDebugPkg/DebugTimer: Dump Debug Timer parameter
[mirror_edk2.git] / SourceLevelDebugPkg / Library / DebugAgent / DxeDebugAgent / DxeDebugAgentLib.c
index f1cb7d5601b2e74f74cf4e6f14092c7dd0c8d188..aaf342e0ba85f9d3bb952e4a2a3d68e3a89824be 100644 (file)
@@ -306,7 +306,7 @@ SetupDebugAgentEnvironment (
   //\r
   // Initialize Debug Timer hardware and save its initial count and frequency\r
   //\r
-  mDebugMpContext.DebugTimerInitCount = InitializeDebugTimer (&DebugTimerFrequency);\r
+  mDebugMpContext.DebugTimerInitCount = InitializeDebugTimer (&DebugTimerFrequency, TRUE);\r
   UpdateMailboxContent (mMailboxPointer, DEBUG_MAILBOX_DEBUG_TIMER_FREQUENCY, DebugTimerFrequency);\r
   //\r
   // Initialize debug communication port\r
@@ -437,39 +437,11 @@ InitializeDebugAgent (
 \r
     *(EFI_STATUS *)Context = EFI_SUCCESS;\r
 \r
-    if (gST->ConOut != NULL) {\r
-      Print (L"Debug Agent: Initialized successfully!\r\n");\r
-      Print (L"If the Debug Port is serial port, please make sure this serial port isn't connected by ISA Serial driver\r\n");\r
-      Print (L"You could do the following steps to disconnect the serial port:\r\n");\r
-      Print (L"1: Shell> drivers\r\n");\r
-      Print (L"   ...\r\n");\r
-      Print (L"   V  VERSION  E G G #D #C DRIVER NAME                         IMAGE NAME\r\n");\r
-      Print (L"   == ======== = = = == == =================================== ===================\r\n");\r
-      Print (L"   8F 0000000A B - -  1 14 PCI Bus Driver                      PciBusDxe\r\n");\r
-      Print (L"   91 00000010 ? - -  -  - ATA Bus Driver                      AtaBusDxe\r\n");\r
-      Print (L"   ...\r\n");\r
-      Print (L"   A7 0000000A B - -  1  1 ISA Serial Driver                   IsaSerialDxe\r\n");\r
-      Print (L"   ...\r\n");\r
-      Print (L"2: Shell> dh -d A7\r\n");\r
-      Print (L"   A7: Image(IsaSerialDxe) ImageDevPath (..9FB3-11D4-9A3A-0090273FC14D))DriverBinding ComponentName ComponentName2\r\n");\r
-      Print (L"        Driver Name    : ISA Serial Driver\r\n");\r
-      Print (L"        Image Name     : FvFile(93B80003-9FB3-11D4-9A3A-0090273FC14D)\r\n");\r
-      Print (L"        Driver Version : 0000000A\r\n");\r
-      Print (L"        Driver Type    : BUS\r\n");\r
-      Print (L"        Configuration  : NO\r\n");\r
-      Print (L"        Diagnostics    : NO\r\n");\r
-      Print (L"        Managing       :\r\n");\r
-      Print (L"          Ctrl[EA] : PciRoot(0x0)/Pci(0x1F,0x0)/Serial(0x0)\r\n");\r
-      Print (L"            Child[EB] : PciRoot(0x0)/Pci(0x1F,0x0)/Serial(0x0)/Uart(115200,8,N,1)\r\n");\r
-      Print (L"3: Shell> disconnect EA\r\n");\r
-      Print (L"4: Shell> load -nc DebugAgentDxe.efi\r\n\r\n");\r
-    }\r
     break;\r
 \r
   case DEBUG_AGENT_INIT_DXE_UNLOAD:\r
     if (mDebugAgentInitialized) {\r
       if (IsHostAttached ()) {\r
-        Print (L"Debug Agent: Host is still connected, please de-attach TARGET firstly!\r\n");\r
         *(EFI_STATUS *)Context = EFI_ACCESS_DENIED;\r
         //\r
         // Enable Debug Timer interrupt again\r
@@ -488,7 +460,6 @@ InitializeDebugAgent (
         *(EFI_STATUS *)Context = EFI_SUCCESS;\r
       }\r
     } else {\r
-      Print (L"Debug Agent: It hasn't been initialized, cannot unload it!\r\n");\r
       *(EFI_STATUS *)Context = EFI_NOT_STARTED;\r
     }\r
 \r