summaryrefslogtreecommitdiffstats
path: root/SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgent/SmmDebugAgentLib.c
diff options
context:
space:
mode:
authorLiming Gao <liming.gao@intel.com>2018-06-27 21:14:00 +0800
committerLiming Gao <liming.gao@intel.com>2018-06-28 11:19:52 +0800
commit77695f4da3dc8eedb6fc7fc67f91ef6ccd22daee (patch)
tree165a0742bc4af9973f73ad5443afdc07d8620254 /SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgent/SmmDebugAgentLib.c
parentba0014b9f8ae1a593f03e744f26008214c2b06a8 (diff)
downloadedk2-77695f4da3dc8eedb6fc7fc67f91ef6ccd22daee.tar.gz
edk2-77695f4da3dc8eedb6fc7fc67f91ef6ccd22daee.tar.bz2
edk2-77695f4da3dc8eedb6fc7fc67f91ef6ccd22daee.zip
SourceLevelDebugPkg: Clean up source files
1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Hao Wu <hao.a.wu@intel.com>
Diffstat (limited to 'SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgent/SmmDebugAgentLib.c')
-rw-r--r--SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgent/SmmDebugAgentLib.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgent/SmmDebugAgentLib.c b/SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgent/SmmDebugAgentLib.c
index 6be8c54425..03a88e6251 100644
--- a/SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgent/SmmDebugAgentLib.c
+++ b/SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgent/SmmDebugAgentLib.c
@@ -1,7 +1,7 @@
/** @file
Debug Agent library implementition.
- Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -77,7 +77,7 @@ GetMailboxFromHob (
)
{
EFI_HOB_GUID_TYPE *GuidHob;
- UINT64 *MailboxLocation;
+ UINT64 *MailboxLocation;
DEBUG_AGENT_MAILBOX *Mailbox;
GuidHob = GetFirstGuidHob (&gEfiDebugAgentGuid);
@@ -87,7 +87,7 @@ GetMailboxFromHob (
MailboxLocation = (UINT64 *) (GET_GUID_HOB_DATA(GuidHob));
Mailbox = (DEBUG_AGENT_MAILBOX *)(UINTN)(*MailboxLocation);
VerifyMailboxChecksum (Mailbox);
-
+
return Mailbox;
}
@@ -224,7 +224,7 @@ InitializeDebugAgent (
//
// Check if Debug Agent initialized in SEC/PEI phase
//
- Mailbox = GetMailboxFromHob ();
+ Mailbox = GetMailboxFromHob ();
if (Mailbox != NULL) {
mMailboxPointer = Mailbox;
break;
@@ -237,7 +237,7 @@ InitializeDebugAgent (
//
// Save original IDT entries
//
- AsmReadIdtr (&IdtDescriptor);
+ AsmReadIdtr (&IdtDescriptor);
CopyMem (&IdtEntry, (VOID *)IdtDescriptor.Base, 33 * sizeof(IA32_IDT_GATE_DESCRIPTOR));
//
// Initialized Debug Agent
@@ -269,11 +269,11 @@ InitializeDebugAgent (
}
//
// Find and report PE/COFF image info to HOST
- //
+ //
FindAndReportModuleImageInfo (SIZE_4KB);
//
// Restore saved IDT entries
- //
+ //
CopyMem ((VOID *)IdtDescriptor.Base, &IdtEntry, 33 * sizeof(IA32_IDT_GATE_DESCRIPTOR));
break;
@@ -381,12 +381,12 @@ InitializeDebugAgent (
default:
//
- // Only DEBUG_AGENT_INIT_PREMEM_SEC and DEBUG_AGENT_INIT_POSTMEM_SEC are allowed for this
+ // Only DEBUG_AGENT_INIT_PREMEM_SEC and DEBUG_AGENT_INIT_POSTMEM_SEC are allowed for this
// Debug Agent library instance.
//
DEBUG ((EFI_D_ERROR, "Debug Agent: The InitFlag value is not allowed!\n"));
CpuDeadLoop ();
- break;
+ break;
}
}