]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/DxeRuntimeExtendedSalLib/ExtendedSalLib.c
MdePkg: Clean up source files
[mirror_edk2.git] / MdePkg / Library / DxeRuntimeExtendedSalLib / ExtendedSalLib.c
index f9e974b373d48ab7c994b974e30e1c4d3d3b7fc3..a3ba071550f1ca080d99f6ddb0a45b588ac57762 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   This library implements the Extended SAL Library Class for use in boot services and runtime.\r
 \r
-  Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\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
@@ -158,9 +158,9 @@ DxeSalLibInitialize (
 /**\r
   Constructor function to initializes physical plabel of ESAL entrypoint and register an event\r
   for initialization of virtual plabel of ESAL entrypoint.\r
-  \r
+\r
   This is the library constructor function to call a function to initialize physical plabel of ESAL entrypoint\r
-  and to register notification function for \r
+  and to register notification function for\r
   EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE, which sets virtual plabel of ESAL entrypoint.\r
 \r
   @param  ImageHandle   The firmware allocated handle for the EFI image.\r
@@ -200,9 +200,9 @@ DxeRuntimeExtendedSalLibConstruct (
 }\r
 \r
 /**\r
-  Destructor function to close the event created by the library constructor \r
-  \r
-  This is the library destructor function to close the event with type of \r
+  Destructor function to close the event created by the library constructor\r
+\r
+  This is the library destructor function to close the event with type of\r
   EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE, which is created by the library constructor.\r
 \r
   @param  ImageHandle   The firmware allocated handle for the EFI image.\r
@@ -232,7 +232,7 @@ DxeRuntimeExtendedSalLibDeconstruct (
 \r
 /**\r
   Registers function of ESAL class and it's associated global.\r
-  \r
+\r
   This function registers function of ESAL class, together with its associated global.\r
   It is worker function for RegisterEsalClass().\r
   It is only for boot time.\r
@@ -267,7 +267,7 @@ RegisterEsalFunction (
 \r
 /**\r
   Registers ESAL Class and it's associated global.\r
-  \r
+\r
   This function registers one or more Extended SAL services in a given\r
   class along with the associated global context.\r
   This function is only available prior to ExitBootServices().\r
@@ -280,7 +280,7 @@ RegisterEsalFunction (
   @retval EFI_SUCCESS          The Extended SAL services were registered.\r
   @retval EFI_UNSUPPORTED      This function was called after ExitBootServices().\r
   @retval EFI_OUT_OF_RESOURCES There are not enough resources available to register one or more of the specified services.\r
-  @retval Other                ClassGuid could not be installed onto a new handle.  \r
+  @retval Other                ClassGuid could not be installed onto a new handle.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -338,7 +338,7 @@ RegisterEsalClass (
 \r
 /**\r
   Calls an Extended SAL Class service that was previously registered with RegisterEsalClass().\r
-  \r
+\r
   This function gets the entrypoint of Extended SAL, and calls an Extended SAL Class service\r
   that was previously registered with RegisterEsalClass() through this entrypoint.\r
 \r
@@ -352,12 +352,12 @@ RegisterEsalClass (
   @param  Arg6            Argument 6 ClassGuid/FunctionId defined\r
   @param  Arg7            Argument 7 ClassGuid/FunctionId defined\r
   @param  Arg8            Argument 8 ClassGuid/FunctionId defined\r
-  \r
+\r
   @retval EFI_SAL_SUCCESS ESAL procedure successfully called.\r
   @retval EFI_SAL_ERROR   The address of ExtendedSalProc() can not be correctly\r
                           initialized.\r
   @retval Other           Status returned from ExtendedSalProc() service of\r
-                          EXTENDED_SAL_BOOT_SERVICE_PROTOCOL.  \r
+                          EXTENDED_SAL_BOOT_SERVICE_PROTOCOL.\r
 \r
 **/\r
 SAL_RETURN_REGS\r
@@ -421,7 +421,7 @@ EsalCall (
 \r
 /**\r
   Wrapper for the EsalStallFunctionId service of Extended SAL Stall Services Class.\r
-  \r
+\r
   This function is a wrapper for the EsalStallFunctionId service of Extended SAL\r
   Stall Services Class. See EsalStallFunctionId of Extended SAL Specification.\r
 \r
@@ -439,22 +439,22 @@ EsalStall (
   )\r
 {\r
   return EsalCall (\r
-           EFI_EXTENDED_SAL_STALL_SERVICES_PROTOCOL_GUID_LO, \r
-           EFI_EXTENDED_SAL_STALL_SERVICES_PROTOCOL_GUID_HI, \r
-           StallFunctionId, \r
-           Microseconds, \r
-           0, \r
-           0, \r
-           0, \r
-           0, \r
-           0, \r
+           EFI_EXTENDED_SAL_STALL_SERVICES_PROTOCOL_GUID_LO,\r
+           EFI_EXTENDED_SAL_STALL_SERVICES_PROTOCOL_GUID_HI,\r
+           StallFunctionId,\r
+           Microseconds,\r
+           0,\r
+           0,\r
+           0,\r
+           0,\r
+           0,\r
            0\r
            );\r
 }\r
 \r
 /**\r
   Wrapper for the EsalSetNewPalEntryFunctionId service of Extended SAL PAL Services Services Class.\r
-  \r
+\r
   This function is a wrapper for the EsalSetNewPalEntryFunctionId service of Extended SAL\r
   PAL Services Services Class. See EsalSetNewPalEntryFunctionId of Extended SAL Specification.\r
 \r
@@ -476,22 +476,22 @@ EsalSetNewPalEntry (
   )\r
 {\r
   return EsalCall (\r
-           EFI_EXTENDED_SAL_PAL_SERVICES_PROTOCOL_GUID_LO, \r
+           EFI_EXTENDED_SAL_PAL_SERVICES_PROTOCOL_GUID_LO,\r
            EFI_EXTENDED_SAL_PAL_SERVICES_PROTOCOL_GUID_HI,\r
-           SetNewPalEntryFunctionId, \r
-           PhysicalAddress, \r
-           PalEntryPoint, \r
-           0, \r
-           0, \r
-           0, \r
-           0, \r
+           SetNewPalEntryFunctionId,\r
+           PhysicalAddress,\r
+           PalEntryPoint,\r
+           0,\r
+           0,\r
+           0,\r
+           0,\r
            0\r
            );\r
 }\r
 \r
 /**\r
   Wrapper for the EsalGetNewPalEntryFunctionId service of Extended SAL PAL Services Services Class.\r
-  \r
+\r
   This function is a wrapper for the EsalGetNewPalEntryFunctionId service of Extended SAL\r
   PAL Services Services Class. See EsalGetNewPalEntryFunctionId of Extended SAL Specification.\r
 \r
@@ -515,20 +515,20 @@ EsalGetNewPalEntry (
   return EsalCall (\r
            EFI_EXTENDED_SAL_PAL_SERVICES_PROTOCOL_GUID_LO,\r
            EFI_EXTENDED_SAL_PAL_SERVICES_PROTOCOL_GUID_HI,\r
-           GetNewPalEntryFunctionId, \r
-           PhysicalAddress, \r
-           0, \r
-           0, \r
-           0, \r
-           0, \r
-           0, \r
+           GetNewPalEntryFunctionId,\r
+           PhysicalAddress,\r
+           0,\r
+           0,\r
+           0,\r
+           0,\r
+           0,\r
            0\r
            );\r
 }\r
 \r
 /**\r
   Wrapper for the EsalGetStateBufferFunctionId service of Extended SAL MCA Log Services Class.\r
-  \r
+\r
   This function is a wrapper for the EsalGetStateBufferFunctionId service of Extended SAL\r
   MCA Log Services Class. See EsalGetStateBufferFunctionId of Extended SAL Specification.\r
 \r
@@ -557,13 +557,13 @@ EsalGetStateBuffer (
   Regs = EsalCall (\r
            EFI_EXTENDED_SAL_MCA_LOG_SERVICES_PROTOCOL_GUID_LO,\r
            EFI_EXTENDED_SAL_MCA_LOG_SERVICES_PROTOCOL_GUID_HI,\r
-           EsalGetStateBufferFunctionId, \r
-           McaType, \r
-           0, \r
-           0, \r
-           0, \r
-           0, \r
-           0, \r
+           EsalGetStateBufferFunctionId,\r
+           McaType,\r
+           0,\r
+           0,\r
+           0,\r
+           0,\r
+           0,\r
            0\r
            );\r
 \r
@@ -575,10 +575,10 @@ EsalGetStateBuffer (
 \r
 /**\r
   Wrapper for the EsalSaveStateBufferFunctionId service of Extended SAL MCA Log Services Class.\r
-  \r
+\r
   This function is a wrapper for the EsalSaveStateBufferFunctionId service of Extended SAL\r
   MCA Log Services Class. See EsalSaveStateBufferFunctionId of Extended SAL Specification.\r
-  \r
+\r
   @param  McaType         See type parameter of SAL Procedure SAL_GET_STATE_INFO.\r
 \r
   @retval EFI_SUCCESS  The memory buffer containing the error record was written to nonvolatile storage.\r
@@ -593,20 +593,20 @@ EsalSaveStateBuffer (
   return EsalCall (\r
            EFI_EXTENDED_SAL_MCA_LOG_SERVICES_PROTOCOL_GUID_LO,\r
            EFI_EXTENDED_SAL_MCA_LOG_SERVICES_PROTOCOL_GUID_HI,\r
-           EsalSaveStateBufferFunctionId, \r
-           McaType, \r
-           0, \r
-           0, \r
-           0, \r
-           0, \r
-           0, \r
+           EsalSaveStateBufferFunctionId,\r
+           McaType,\r
+           0,\r
+           0,\r
+           0,\r
+           0,\r
+           0,\r
            0\r
            );\r
 }\r
 \r
 /**\r
   Wrapper for the EsalGetVectorsFunctionId service of Extended SAL Base Services Class.\r
-  \r
+\r
   This function is a wrapper for the EsalGetVectorsFunctionId service of Extended SAL\r
   Base Services Class. See EsalGetVectorsFunctionId of Extended SAL Specification.\r
 \r
@@ -628,20 +628,20 @@ EsalGetVectors (
   return EsalCall (\r
            EFI_EXTENDED_SAL_BASE_SERVICES_PROTOCOL_GUID_LO,\r
            EFI_EXTENDED_SAL_BASE_SERVICES_PROTOCOL_GUID_HI,\r
-           EsalGetVectorsFunctionId, \r
-           VectorType, \r
-           0, \r
-           0, \r
-           0, \r
-           0, \r
-           0, \r
+           EsalGetVectorsFunctionId,\r
+           VectorType,\r
+           0,\r
+           0,\r
+           0,\r
+           0,\r
+           0,\r
            0\r
            );\r
 }\r
 \r
 /**\r
   Wrapper for the EsalMcGetParamsFunctionId service of Extended SAL Base Services Class.\r
-  \r
+\r
   This function is a wrapper for the EsalMcGetParamsFunctionId service of Extended SAL\r
   Base Services Class. See EsalMcGetParamsFunctionId of Extended SAL Specification.\r
 \r
@@ -665,23 +665,23 @@ EsalMcGetParams (
   return EsalCall (\r
            EFI_EXTENDED_SAL_BASE_SERVICES_PROTOCOL_GUID_LO,\r
            EFI_EXTENDED_SAL_BASE_SERVICES_PROTOCOL_GUID_HI,\r
-           EsalMcGetParamsFunctionId, \r
-           ParamInfoType, \r
-           0, \r
-           0, \r
-           0, \r
-           0, \r
-           0, \r
+           EsalMcGetParamsFunctionId,\r
+           ParamInfoType,\r
+           0,\r
+           0,\r
+           0,\r
+           0,\r
+           0,\r
            0\r
            );\r
 }\r
 \r
 /**\r
   Wrapper for the EsalMcGetParamsFunctionId service of Extended SAL Base Services Class.\r
-  \r
+\r
   This function is a wrapper for the EsalMcGetParamsFunctionId service of Extended SAL\r
   Base Services Class. See EsalMcGetParamsFunctionId of Extended SAL Specification.\r
-  \r
+\r
   @retval EFI_SAL_SUCCESS          Call completed without error.\r
   @retval EFI_SAL_NO_INFORMATION   The requested vector has not been registered\r
                                    with the SAL Procedure SAL_MC_SET_PARAMS.\r
@@ -696,20 +696,20 @@ EsalMcGetMcParams (
   return EsalCall (\r
            EFI_EXTENDED_SAL_BASE_SERVICES_PROTOCOL_GUID_LO,\r
            EFI_EXTENDED_SAL_BASE_SERVICES_PROTOCOL_GUID_HI,\r
-           EsalMcGetMcParamsFunctionId, \r
-           0, \r
-           0, \r
-           0, \r
-           0, \r
-           0, \r
-           0, \r
+           EsalMcGetMcParamsFunctionId,\r
+           0,\r
+           0,\r
+           0,\r
+           0,\r
+           0,\r
+           0,\r
            0\r
            );\r
 }\r
 \r
 /**\r
   Wrapper for the EsalGetMcCheckinFlagsFunctionId service of Extended SAL Base Services Class.\r
-  \r
+\r
   This function is a wrapper for the EsalGetMcCheckinFlagsFunctionId service of Extended SAL\r
   Base Services Class. See EsalGetMcCheckinFlagsFunctionId of Extended SAL Specification.\r
 \r
@@ -727,20 +727,20 @@ EsalGetMcCheckinFlags (
   return EsalCall (\r
            EFI_EXTENDED_SAL_BASE_SERVICES_PROTOCOL_GUID_LO,\r
            EFI_EXTENDED_SAL_BASE_SERVICES_PROTOCOL_GUID_HI,\r
-           EsalGetMcCheckinFlagsFunctionId, \r
-           CpuIndex, \r
-           0, \r
-           0, \r
-           0, \r
-           0, \r
-           0, \r
+           EsalGetMcCheckinFlagsFunctionId,\r
+           CpuIndex,\r
+           0,\r
+           0,\r
+           0,\r
+           0,\r
+           0,\r
            0\r
            );\r
 }\r
 \r
 /**\r
   Wrapper for the EsalAddCpuDataFunctionId service of Extended SAL MP Services Class.\r
-  \r
+\r
   This function is a wrapper for the EsalAddCpuDataFunctionId service of Extended SAL\r
   MP Services Class. See EsalAddCpuDataFunctionId of Extended SAL Specification.\r
 \r
@@ -765,20 +765,20 @@ EsalAddCpuData (
   return EsalCall (\r
            EFI_EXTENDED_SAL_MP_SERVICES_PROTOCOL_GUID_LO,\r
            EFI_EXTENDED_SAL_MP_SERVICES_PROTOCOL_GUID_HI,\r
-           AddCpuDataFunctionId, \r
-           CpuGlobalId, \r
-           Enabled, \r
-           PalCompatibility, \r
-           0, \r
-           0, \r
-           0, \r
+           AddCpuDataFunctionId,\r
+           CpuGlobalId,\r
+           Enabled,\r
+           PalCompatibility,\r
+           0,\r
+           0,\r
+           0,\r
            0\r
            );\r
 }\r
 \r
 /**\r
   Wrapper for the EsalRemoveCpuDataFunctionId service of Extended SAL MP Services Class.\r
-  \r
+\r
   This function is a wrapper for the EsalRemoveCpuDataFunctionId service of Extended SAL\r
   MP Services Class. See EsalRemoveCpuDataFunctionId of Extended SAL Specification.\r
 \r
@@ -797,20 +797,20 @@ EsalRemoveCpuData (
   return EsalCall (\r
            EFI_EXTENDED_SAL_MP_SERVICES_PROTOCOL_GUID_LO,\r
            EFI_EXTENDED_SAL_MP_SERVICES_PROTOCOL_GUID_HI,\r
-           RemoveCpuDataFunctionId, \r
-           CpuGlobalId, \r
-           0, \r
-           0, \r
-           0, \r
-           0, \r
-           0, \r
+           RemoveCpuDataFunctionId,\r
+           CpuGlobalId,\r
+           0,\r
+           0,\r
+           0,\r
+           0,\r
+           0,\r
            0\r
            );\r
 }\r
 \r
 /**\r
   Wrapper for the EsalModifyCpuDataFunctionId service of Extended SAL MP Services Class.\r
-  \r
+\r
   This function is a wrapper for the EsalModifyCpuDataFunctionId service of Extended SAL\r
   MP Services Class. See EsalModifyCpuDataFunctionId of Extended SAL Specification.\r
 \r
@@ -835,20 +835,20 @@ EsalModifyCpuData (
   return EsalCall (\r
            EFI_EXTENDED_SAL_MP_SERVICES_PROTOCOL_GUID_LO,\r
            EFI_EXTENDED_SAL_MP_SERVICES_PROTOCOL_GUID_HI,\r
-           ModifyCpuDataFunctionId, \r
-           CpuGlobalId, \r
-           Enabled, \r
-           PalCompatibility, \r
-           0, \r
-           0, \r
-           0, \r
+           ModifyCpuDataFunctionId,\r
+           CpuGlobalId,\r
+           Enabled,\r
+           PalCompatibility,\r
+           0,\r
+           0,\r
+           0,\r
            0\r
            );\r
 }\r
 \r
 /**\r
   Wrapper for the EsalGetCpuDataByIdFunctionId service of Extended SAL MP Services Class.\r
-  \r
+\r
   This function is a wrapper for the EsalGetCpuDataByIdFunctionId service of Extended SAL\r
   MP Services Class. See EsalGetCpuDataByIdFunctionId of Extended SAL Specification.\r
 \r
@@ -870,20 +870,20 @@ EsalGetCpuDataById (
   return EsalCall (\r
            EFI_EXTENDED_SAL_MP_SERVICES_PROTOCOL_GUID_LO,\r
            EFI_EXTENDED_SAL_MP_SERVICES_PROTOCOL_GUID_HI,\r
-           GetCpuDataByIDFunctionId, \r
-           CpuGlobalId, \r
-           IndexByEnabledCpu, \r
-           0, \r
-           0, \r
-           0, \r
-           0, \r
+           GetCpuDataByIDFunctionId,\r
+           CpuGlobalId,\r
+           IndexByEnabledCpu,\r
+           0,\r
+           0,\r
+           0,\r
+           0,\r
            0\r
            );\r
 }\r
 \r
 /**\r
   Wrapper for the EsalGetCpuDataByIndexFunctionId service of Extended SAL MP Services Class.\r
-  \r
+\r
   This function is a wrapper for the EsalGetCpuDataByIndexFunctionId service of Extended SAL\r
   MP Services Class. See EsalGetCpuDataByIndexFunctionId of Extended SAL Specification.\r
 \r
@@ -905,20 +905,20 @@ EsalGetCpuDataByIndex (
   return EsalCall (\r
            EFI_EXTENDED_SAL_MP_SERVICES_PROTOCOL_GUID_LO,\r
            EFI_EXTENDED_SAL_MP_SERVICES_PROTOCOL_GUID_HI,\r
-           GetCpuDataByIndexFunctionId, \r
-           Index, \r
-           IndexByEnabledCpu, \r
-           0, \r
-           0, \r
-           0, \r
-           0, \r
+           GetCpuDataByIndexFunctionId,\r
+           Index,\r
+           IndexByEnabledCpu,\r
+           0,\r
+           0,\r
+           0,\r
+           0,\r
            0\r
            );\r
 }\r
 \r
 /**\r
   Wrapper for the EsalWhoAmIFunctionId service of Extended SAL MP Services Class.\r
-  \r
+\r
   This function is a wrapper for the EsalWhoAmIFunctionId service of Extended SAL\r
   MP Services Class. See EsalWhoAmIFunctionId of Extended SAL Specification.\r
 \r
@@ -938,20 +938,20 @@ EsalWhoAmI (
   return EsalCall (\r
            EFI_EXTENDED_SAL_MP_SERVICES_PROTOCOL_GUID_LO,\r
            EFI_EXTENDED_SAL_MP_SERVICES_PROTOCOL_GUID_HI,\r
-           CurrentProcInfoFunctionId, \r
-           IndexByEnabledCpu, \r
-           0, \r
-           0, \r
-           0, \r
-           0, \r
-           0, \r
+           CurrentProcInfoFunctionId,\r
+           IndexByEnabledCpu,\r
+           0,\r
+           0,\r
+           0,\r
+           0,\r
+           0,\r
            0\r
            );\r
 }\r
 \r
 /**\r
   Wrapper for the EsalNumProcessors service of Extended SAL MP Services Class.\r
-  \r
+\r
   This function is a wrapper for the EsalNumProcessors service of Extended SAL\r
   MP Services Class. See EsalNumProcessors of Extended SAL Specification.\r
 \r
@@ -968,20 +968,20 @@ EsalNumProcessors (
   return EsalCall (\r
            EFI_EXTENDED_SAL_MP_SERVICES_PROTOCOL_GUID_LO,\r
            EFI_EXTENDED_SAL_MP_SERVICES_PROTOCOL_GUID_HI,\r
-           NumProcessorsFunctionId, \r
-           0, \r
-           0, \r
-           0, \r
-           0, \r
-           0, \r
-           0, \r
+           NumProcessorsFunctionId,\r
+           0,\r
+           0,\r
+           0,\r
+           0,\r
+           0,\r
+           0,\r
            0\r
            );\r
 }\r
 \r
 /**\r
   Wrapper for the EsalSetMinStateFnctionId service of Extended SAL MP Services Class.\r
-  \r
+\r
   This function is a wrapper for the EsalSetMinStateFnctionId service of Extended SAL\r
   MP Services Class. See EsalSetMinStateFnctionId of Extended SAL Specification.\r
 \r
@@ -1003,20 +1003,20 @@ EsalSetMinState (
   return EsalCall (\r
            EFI_EXTENDED_SAL_MP_SERVICES_PROTOCOL_GUID_LO,\r
            EFI_EXTENDED_SAL_MP_SERVICES_PROTOCOL_GUID_HI,\r
-           SetMinStateFunctionId, \r
-           CpuGlobalId, \r
-           MinStatePointer, \r
-           0, \r
-           0, \r
-           0, \r
-           0, \r
+           SetMinStateFunctionId,\r
+           CpuGlobalId,\r
+           MinStatePointer,\r
+           0,\r
+           0,\r
+           0,\r
+           0,\r
            0\r
            );\r
 }\r
 \r
 /**\r
   Wrapper for the EsalGetMinStateFunctionId service of Extended SAL MP Services Class.\r
-  \r
+\r
   This function is a wrapper for the EsalGetMinStateFunctionId service of Extended SAL\r
   MP Services Class. See EsalGetMinStateFunctionId of Extended SAL Specification.\r
 \r
@@ -1035,20 +1035,20 @@ EsalGetMinState (
   return EsalCall (\r
            EFI_EXTENDED_SAL_MP_SERVICES_PROTOCOL_GUID_LO,\r
            EFI_EXTENDED_SAL_MP_SERVICES_PROTOCOL_GUID_HI,\r
-           GetMinStateFunctionId, \r
-           CpuGlobalId, \r
-           0, \r
-           0, \r
-           0, \r
-           0, \r
-           0, \r
+           GetMinStateFunctionId,\r
+           CpuGlobalId,\r
+           0,\r
+           0,\r
+           0,\r
+           0,\r
+           0,\r
            0\r
            );\r
 }\r
 \r
 /**\r
   Wrapper for the EsalMcsGetStateInfoFunctionId service of Extended SAL MCA Services Class.\r
-  \r
+\r
   This function is a wrapper for the EsalMcsGetStateInfoFunctionId service of Extended SAL\r
   MCA Services Class. See EsalMcsGetStateInfoFunctionId of Extended SAL Specification.\r
 \r
@@ -1073,13 +1073,13 @@ EsalMcaGetStateInfo (
   Regs = EsalCall (\r
            EFI_EXTENDED_SAL_MCA_SERVICES_PROTOCOL_GUID_LO,\r
            EFI_EXTENDED_SAL_MCA_SERVICES_PROTOCOL_GUID_HI,\r
-           McaGetStateInfoFunctionId, \r
-           CpuGlobalId, \r
-           0, \r
-           0, \r
-           0, \r
-           0, \r
-           0, \r
+           McaGetStateInfoFunctionId,\r
+           CpuGlobalId,\r
+           0,\r
+           0,\r
+           0,\r
+           0,\r
+           0,\r
            0\r
            );\r
 \r
@@ -1091,7 +1091,7 @@ EsalMcaGetStateInfo (
 \r
 /**\r
   Wrapper for the EsalMcaRegisterCpuFunctionId service of Extended SAL MCA Services Class.\r
-  \r
+\r
   This function is a wrapper for the EsalMcaRegisterCpuFunctionId service of Extended SAL\r
   MCA Services Class. See EsalMcaRegisterCpuFunctionId of Extended SAL Specification.\r
 \r
@@ -1112,13 +1112,13 @@ EsalMcaRegisterCpu (
   return EsalCall (\r
            EFI_EXTENDED_SAL_MCA_SERVICES_PROTOCOL_GUID_LO,\r
            EFI_EXTENDED_SAL_MCA_SERVICES_PROTOCOL_GUID_HI,\r
-           McaRegisterCpuFunctionId, \r
-           CpuGlobalId, \r
-           StateBufferPointer, \r
-           0, \r
-           0, \r
-           0, \r
-           0, \r
+           McaRegisterCpuFunctionId,\r
+           CpuGlobalId,\r
+           StateBufferPointer,\r
+           0,\r
+           0,\r
+           0,\r
+           0,\r
            0\r
            );\r
 }\r