summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Universal/DebugSupportDxe/DebugSupport.c
diff options
context:
space:
mode:
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-11 08:38:20 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-11 08:38:20 +0000
commitc84507ab5229c462806187b090ba6249540c9070 (patch)
tree7667d4af2c9b069362001fefebb5750f39b0a0f0 /MdeModulePkg/Universal/DebugSupportDxe/DebugSupport.c
parent89df7f9df7551a7f32566aaf9aeaf22d0eae0864 (diff)
downloadedk2-c84507ab5229c462806187b090ba6249540c9070.tar.gz
edk2-c84507ab5229c462806187b090ba6249540c9070.tar.bz2
edk2-c84507ab5229c462806187b090ba6249540c9070.zip
code scrub for DebugSpport Module.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6997 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/DebugSupportDxe/DebugSupport.c')
-rw-r--r--MdeModulePkg/Universal/DebugSupportDxe/DebugSupport.c29
1 files changed, 12 insertions, 17 deletions
diff --git a/MdeModulePkg/Universal/DebugSupportDxe/DebugSupport.c b/MdeModulePkg/Universal/DebugSupportDxe/DebugSupport.c
index ed4d86038a..4ef12cac19 100644
--- a/MdeModulePkg/Universal/DebugSupportDxe/DebugSupport.c
+++ b/MdeModulePkg/Universal/DebugSupportDxe/DebugSupport.c
@@ -12,15 +12,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
-//
-// private header files
-//
#include "PlDebugSupport.h"
-//
-// This is a global that is the actual interface
-//
-EFI_DEBUG_SUPPORT_PROTOCOL gDebugSupportProtocolInterface = {
+EFI_DEBUG_SUPPORT_PROTOCOL mDebugSupportProtocolInterface = {
EFI_ISA,
GetMaximumProcessorIndex,
RegisterPeriodicCallback,
@@ -30,16 +24,16 @@ EFI_DEBUG_SUPPORT_PROTOCOL gDebugSupportProtocolInterface = {
/**
- Debug Port Driver entry point.
+ Debug Support Driver entry point.
- Checks to see there's not already a DebugSupport protocol installed for
- the selected processor before installing protocol.
+ Checks to see if there's not already a Debug Support protocol installed for
+ the selected processor before installing it.
@param[in] ImageHandle The firmware allocated handle for the EFI image.
@param[in] SystemTable A pointer to the EFI System Table.
@retval EFI_SUCCESS The entry point is executed successfully.
- @retval EFI_ALREADY_STARTED DebugSupport protocol is installed already.
+ @retval EFI_ALREADY_STARTED DebugS upport protocol is installed already.
@retval other Some error occurs when executing this entry point.
**/
@@ -57,8 +51,6 @@ InitializeDebugSupportDriver (
EFI_DEBUG_SUPPORT_PROTOCOL *DebugSupportProtocolPtr;
//
- // Install Protocol Interface...
- //
// First check to see that the debug support protocol for this processor
// type is not already installed
//
@@ -81,7 +73,10 @@ InitializeDebugSupportDriver (
NULL,
EFI_OPEN_PROTOCOL_GET_PROTOCOL
);
- if (Status == EFI_SUCCESS && DebugSupportProtocolPtr->Isa == EFI_ISA) {
+ if ((Status == EFI_SUCCESS) && (DebugSupportProtocolPtr->Isa == EFI_ISA)) {
+ //
+ // a Debug Support protocol has been installed for this processor
+ //
FreePool (HandlePtr);
Status = EFI_ALREADY_STARTED;
goto ErrExit;
@@ -109,7 +104,7 @@ InitializeDebugSupportDriver (
LoadedImageProtocolPtr->Unload = PlUnloadDebugSupportDriver;
//
- // Call hook for platform specific initialization
+ // Call hook for processor specific initialization
//
Status = PlInitializeDebugSupportDriver ();
ASSERT (!EFI_ERROR (Status));
@@ -118,14 +113,14 @@ InitializeDebugSupportDriver (
}
//
- // Install DebugSupport protocol to new handle
+ // Install Debug Support protocol to new handle
//
Handle = NULL;
Status = gBS->InstallProtocolInterface (
&Handle,
&gEfiDebugSupportProtocolGuid,
EFI_NATIVE_INTERFACE,
- &gDebugSupportProtocolInterface
+ &mDebugSupportProtocolInterface
);
ASSERT (!EFI_ERROR (Status));
if (Status != EFI_SUCCESS) {