]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/DebugSupportDxe/Ia32/PlDebugSupport.c
MdeModulePkg: Clean up source files
[mirror_edk2.git] / MdeModulePkg / Universal / DebugSupportDxe / Ia32 / PlDebugSupport.c
index c78285a60e46e5e022a7735a76ed3ccadce02e1e..782ce10490199bdd24bb8684a78b80ea21c66392 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
   IA32/x64 generic functions to support Debug Support protocol.\r
 \r
-Copyright (c) 2006 - 2010, Intel Corporation\r
-All rights reserved. This program and the accompanying materials\r
+Copyright (c) 2006 - 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
 http://opensource.org/licenses/bsd-license.php\r
@@ -84,7 +84,7 @@ HookEntry (
   BOOLEAN     OldIntFlagState;\r
 \r
   CreateEntryStub (ExceptionType, (VOID **) &IdtEntryTable[ExceptionType].StubEntry);\r
-                          \r
+\r
   //\r
   // Disables CPU interrupts and returns the previous interrupt state\r
   //\r
@@ -95,12 +95,12 @@ HookEntry (
   //\r
   ReadIdtGateDescriptor (ExceptionType, &(IdtEntryTable[ExceptionType].OrigDesc));\r
   //\r
-  // stores orignal interrupt handle \r
+  // stores orignal interrupt handle\r
   //\r
   IdtEntryTable[ExceptionType].OrigVector = (DEBUG_PROC) GetInterruptHandleFromIdt (&(IdtEntryTable[ExceptionType].OrigDesc));\r
 \r
-  // \r
-  // encodes new IDT Gate descriptor by stub entry \r
+  //\r
+  // encodes new IDT Gate descriptor by stub entry\r
   //\r
   Vect2Desc (&IdtEntryTable[ExceptionType].NewDesc, IdtEntryTable[ExceptionType].StubEntry);\r
   //\r
@@ -154,14 +154,14 @@ UnhookEntry (
 \r
 /**\r
   Returns the maximum value that may be used for the ProcessorIndex parameter in\r
-  RegisterPeriodicCallback() and RegisterExceptionCallback().                   \r
-    \r
+  RegisterPeriodicCallback() and RegisterExceptionCallback().\r
+\r
   Hard coded to support only 1 processor for now.\r
 \r
   @param  This                  A pointer to the EFI_DEBUG_SUPPORT_PROTOCOL instance.\r
   @param  MaxProcessorIndex     Pointer to a caller-allocated UINTN in which the maximum supported\r
-                                processor index is returned. Always 0 returned.                                     \r
-                                \r
+                                processor index is returned. Always 0 returned.\r
+\r
   @retval EFI_SUCCESS           Always returned with **MaxProcessorIndex set to 0.\r
 \r
 **/\r
@@ -178,17 +178,17 @@ GetMaximumProcessorIndex (
 \r
 /**\r
   Registers a function to be called back periodically in interrupt context.\r
-    \r
+\r
   @param  This                  A pointer to the EFI_DEBUG_SUPPORT_PROTOCOL instance.\r
   @param  ProcessorIndex        Specifies which processor the callback function applies to.\r
   @param  PeriodicCallback      A pointer to a function of type PERIODIC_CALLBACK that is the main\r
                                 periodic entry point of the debug agent.\r
-                                \r
-  @retval EFI_SUCCESS           The function completed successfully.  \r
+\r
+  @retval EFI_SUCCESS           The function completed successfully.\r
   @retval EFI_ALREADY_STARTED   Non-NULL PeriodicCallback parameter when a callback\r
-                                function was previously registered.                \r
-  @retval EFI_OUT_OF_RESOURCES  System has insufficient memory resources to register new callback                               \r
-                                function. \r
+                                function was previously registered.\r
+  @retval EFI_OUT_OF_RESOURCES  System has insufficient memory resources to register new callback\r
+                                function.\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
@@ -205,17 +205,17 @@ RegisterPeriodicCallback (
   Registers a function to be called when a given processor exception occurs.\r
 \r
   This code executes in boot services context.\r
-    \r
+\r
   @param  This                  A pointer to the EFI_DEBUG_SUPPORT_PROTOCOL instance.\r
   @param  ProcessorIndex        Specifies which processor the callback function applies to.\r
   @param  ExceptionCallback     A pointer to a function of type EXCEPTION_CALLBACK that is called\r
-                                when the processor exception specified by ExceptionType occurs.  \r
-  @param  ExceptionType         Specifies which processor exception to hook.                       \r
-                                \r
-  @retval EFI_SUCCESS           The function completed successfully.  \r
+                                when the processor exception specified by ExceptionType occurs.\r
+  @param  ExceptionType         Specifies which processor exception to hook.\r
+\r
+  @retval EFI_SUCCESS           The function completed successfully.\r
   @retval EFI_ALREADY_STARTED   Non-NULL PeriodicCallback parameter when a callback\r
-                                function was previously registered.                \r
-  @retval EFI_OUT_OF_RESOURCES  System has insufficient memory resources to register new callback                               \r
+                                function was previously registered.\r
+  @retval EFI_OUT_OF_RESOURCES  System has insufficient memory resources to register new callback\r
                                 function.\r
 **/\r
 EFI_STATUS\r
@@ -233,14 +233,14 @@ RegisterExceptionCallback (
 \r
 /**\r
   Invalidates processor instruction cache for a memory range. Subsequent execution in this range\r
-  causes a fresh memory fetch to retrieve code to be executed.                                  \r
-    \r
+  causes a fresh memory fetch to retrieve code to be executed.\r
+\r
   @param  This                  A pointer to the EFI_DEBUG_SUPPORT_PROTOCOL instance.\r
   @param  ProcessorIndex        Specifies which processor's instruction cache is to be invalidated.\r
-  @param  Start                 Specifies the physical base of the memory range to be invalidated.                                \r
+  @param  Start                 Specifies the physical base of the memory range to be invalidated.\r
   @param  Length                Specifies the minimum number of bytes in the processor's instruction\r
-                                cache to invalidate.                                                 \r
-                                \r
+                                cache to invalidate.\r
+\r
   @retval EFI_SUCCESS           Always returned.\r
 \r
 **/\r
@@ -317,8 +317,8 @@ PlUnloadDebugSupportDriver (
 }\r
 \r
 /**\r
-  Initializes driver's handler registration database. \r
-  \r
+  Initializes driver's handler registration database.\r
+\r
   This code executes in boot services context.\r
   Must be public because it's referenced from DebugSupport.c\r
 \r
@@ -352,7 +352,7 @@ PlInitializeDebugSupportDriver (
     if (IdtEntryTable[ExceptionType].StubEntry == NULL) {\r
       goto ErrorCleanup;\r
     }\r
-    \r
+\r
     //\r
     // Copy Interrupt stub code.\r
     //\r