]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgent/SmmDebugAgentLib.c
SourceLevelDebugPkg: Clean up source files
[mirror_edk2.git] / SourceLevelDebugPkg / Library / DebugAgent / SmmDebugAgent / SmmDebugAgentLib.c
index 6be8c544255dae06387794000aec9fc8c681bcf8..03a88e62517b7ffd529a0a0c4e55ef79d355978a 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Debug Agent library implementition.\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
@@ -77,7 +77,7 @@ GetMailboxFromHob (
   )\r
 {\r
   EFI_HOB_GUID_TYPE        *GuidHob;\r
-  UINT64                   *MailboxLocation;  \r
+  UINT64                   *MailboxLocation;\r
   DEBUG_AGENT_MAILBOX      *Mailbox;\r
 \r
   GuidHob = GetFirstGuidHob (&gEfiDebugAgentGuid);\r
@@ -87,7 +87,7 @@ GetMailboxFromHob (
   MailboxLocation = (UINT64 *) (GET_GUID_HOB_DATA(GuidHob));\r
   Mailbox = (DEBUG_AGENT_MAILBOX *)(UINTN)(*MailboxLocation);\r
   VerifyMailboxChecksum (Mailbox);\r
-  \r
+\r
   return Mailbox;\r
 }\r
 \r
@@ -224,7 +224,7 @@ InitializeDebugAgent (
     //\r
     // Check if Debug Agent initialized in SEC/PEI phase\r
     //\r
-    Mailbox = GetMailboxFromHob (); \r
+    Mailbox = GetMailboxFromHob ();\r
     if (Mailbox != NULL) {\r
       mMailboxPointer = Mailbox;\r
       break;\r
@@ -237,7 +237,7 @@ InitializeDebugAgent (
     //\r
     // Save original IDT entries\r
     //\r
-    AsmReadIdtr (&IdtDescriptor);      \r
+    AsmReadIdtr (&IdtDescriptor);\r
     CopyMem (&IdtEntry, (VOID *)IdtDescriptor.Base, 33 * sizeof(IA32_IDT_GATE_DESCRIPTOR));\r
     //\r
     // Initialized Debug Agent\r
@@ -269,11 +269,11 @@ InitializeDebugAgent (
     }\r
     //\r
     // Find and report PE/COFF image info to HOST\r
-    //  \r
+    //\r
     FindAndReportModuleImageInfo (SIZE_4KB);\r
     //\r
     // Restore saved IDT entries\r
-    //     \r
+    //\r
     CopyMem ((VOID *)IdtDescriptor.Base, &IdtEntry, 33 * sizeof(IA32_IDT_GATE_DESCRIPTOR));\r
 \r
     break;\r
@@ -381,12 +381,12 @@ InitializeDebugAgent (
 \r
   default:\r
     //\r
-    // Only DEBUG_AGENT_INIT_PREMEM_SEC and DEBUG_AGENT_INIT_POSTMEM_SEC are allowed for this \r
+    // Only DEBUG_AGENT_INIT_PREMEM_SEC and DEBUG_AGENT_INIT_POSTMEM_SEC are allowed for this\r
     // Debug Agent library instance.\r
     //\r
     DEBUG ((EFI_D_ERROR, "Debug Agent: The InitFlag value is not allowed!\n"));\r
     CpuDeadLoop ();\r
-    break;    \r
+    break;\r
   }\r
 }\r
 \r