]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableSmm/FirmwarePerformanceSmm.c
MdeModulePkg: Clean up source files
[mirror_edk2.git] / MdeModulePkg / Universal / Acpi / FirmwarePerformanceDataTableSmm / FirmwarePerformanceSmm.c
index b011ec1103011fefcff3cebd0cf9920aeb74d32b..711272e073952a1e60af26656b138f7111b90d9c 100644 (file)
@@ -11,7 +11,7 @@
 \r
   FpdtSmiHandler() will receive untrusted input and do basic validation.\r
 \r
-  Copyright (c) 2011 - 2016, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2011 - 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
@@ -90,7 +90,7 @@ FpdtStatusCodeListenerSmm (
   if ((CodeType & EFI_STATUS_CODE_TYPE_MASK) != EFI_PROGRESS_CODE) {\r
     return EFI_UNSUPPORTED;\r
   }\r
-  \r
+\r
   //\r
   // Collect one or more Boot records in boot time\r
   //\r
@@ -163,7 +163,7 @@ FpdtStatusCodeListenerSmm (
 /**\r
   Communication service SMI Handler entry.\r
 \r
-  This SMI handler provides services for report SMM boot records. \r
+  This SMI handler provides services for report SMM boot records.\r
 \r
   Caution: This function may receive untrusted input.\r
   Communicate buffer and buffer size are external input, so this function will do basic validation.\r
@@ -175,11 +175,11 @@ FpdtStatusCodeListenerSmm (
                                  be conveyed from a non-SMM environment into an SMM environment.\r
   @param[in, out] CommBufferSize The size of the CommBuffer.\r
 \r
-  @retval EFI_SUCCESS                         The interrupt was handled and quiesced. No other handlers \r
+  @retval EFI_SUCCESS                         The interrupt was handled and quiesced. No other handlers\r
                                               should still be called.\r
-  @retval EFI_WARN_INTERRUPT_SOURCE_QUIESCED  The interrupt has been quiesced but other handlers should \r
+  @retval EFI_WARN_INTERRUPT_SOURCE_QUIESCED  The interrupt has been quiesced but other handlers should\r
                                               still be called.\r
-  @retval EFI_WARN_INTERRUPT_SOURCE_PENDING   The interrupt is still pending and other handlers should still \r
+  @retval EFI_WARN_INTERRUPT_SOURCE_PENDING   The interrupt is still pending and other handlers should still\r
                                               be called.\r
   @retval EFI_INTERRUPT_PENDING               The interrupt could not be quiesced.\r
 \r
@@ -212,7 +212,7 @@ FpdtSmiHandler (
   if(TempCommBufferSize < sizeof (SMM_BOOT_RECORD_COMMUNICATE)) {\r
     return EFI_SUCCESS;\r
   }\r
-  \r
+\r
   if (!SmmIsBufferOutsideSmmValid ((UINTN)CommBuffer, TempCommBufferSize)) {\r
     DEBUG ((EFI_D_ERROR, "FpdtSmiHandler: SMM communication data buffer in SMRAM or overflow!\n"));\r
     return EFI_SUCCESS;\r
@@ -242,7 +242,7 @@ FpdtSmiHandler (
         Status = EFI_INVALID_PARAMETER;\r
         break;\r
       }\r
-      \r
+\r
       //\r
       // Sanity check\r
       //\r
@@ -255,10 +255,10 @@ FpdtSmiHandler (
         Status = EFI_ACCESS_DENIED;\r
         break;\r
       }\r
-      \r
+\r
       CopyMem (\r
-       (UINT8*)BootRecordData, \r
-       mBootRecordBuffer + BootRecordOffset, \r
+       (UINT8*)BootRecordData,\r
+       mBootRecordBuffer + BootRecordOffset,\r
        BootRecordSize\r
        );\r
       break;\r
@@ -268,7 +268,7 @@ FpdtSmiHandler (
   }\r
 \r
   SmmCommData->ReturnStatus = Status;\r
-  \r
+\r
   return EFI_SUCCESS;\r
 }\r
 \r
@@ -295,8 +295,8 @@ FirmwarePerformanceSmmEntryPoint (
   //\r
   // Initialize spin lock\r
   //\r
-  InitializeSpinLock (&mSmmFpdtLock); \r
-   \r
+  InitializeSpinLock (&mSmmFpdtLock);\r
+\r
   //\r
   // Get SMM Report Status Code Handler Protocol.\r
   //\r