]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UefiCpuPkg/PiSmmCpuDxeSmm: Fix coding style
authorShenglei Zhang <shenglei.zhang@intel.com>
Wed, 7 Aug 2019 02:06:10 +0000 (10:06 +0800)
committerLiming Gao <liming.gao@intel.com>
Tue, 13 Aug 2019 09:20:32 +0000 (17:20 +0800)
1. Update CPUStatus to CpuStatus in comments to align comments
   with code.
2. Add "OUT" attribute for "ProcedureArguments" parameter in function
   header.

Cc: Eric Dong <eric.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c
UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h

index 328d7ae53a492e851d426dce1970424b551a9d97..d8d2b6f44461220c7597d681b0cdbd03bef644ee 100644 (file)
@@ -1967,7 +1967,7 @@ RegisterSmmEntry (
                                        EFI_MP_SERVICES_PROTOCOL.StartupAllAPs.\r
                                        If caller may pass a value of NULL to deregister any existing\r
                                        startup procedure.\r
-  @param[in]      ProcedureArguments   Allows the caller to pass a list of parameters to the code that is\r
+  @param[in,out]  ProcedureArguments   Allows the caller to pass a list of parameters to the code that is\r
                                        run by the AP. It is an optional common mailbox between APs and\r
                                        the caller to share information\r
 \r
@@ -1977,8 +1977,8 @@ RegisterSmmEntry (
 **/\r
 EFI_STATUS\r
 RegisterStartupProcedure (\r
-  IN EFI_AP_PROCEDURE    Procedure,\r
-  IN VOID                *ProcedureArguments OPTIONAL\r
+  IN     EFI_AP_PROCEDURE    Procedure,\r
+  IN OUT VOID                *ProcedureArguments OPTIONAL\r
   )\r
 {\r
   if (Procedure == NULL && ProcedureArguments != NULL) {\r
index ed70055460d92a4c93059e7a98af6fb05d83d80f..8c29f1a5585c9305c79eb50185e4e39d376141fb 100644 (file)
@@ -1311,7 +1311,7 @@ RestoreCr2 (
                                             Note that timeout support is optional. Whether an implementation\r
                                             supports this feature can be determined via the Attributes data\r
                                             member.\r
-  @param[in,out]   CPUStatus                This optional pointer may be used to get the status code returned\r
+  @param[in,out]   CpuStatus                This optional pointer may be used to get the status code returned\r
                                             by Procedure when it completes execution on the target AP, or with\r
                                             EFI_TIMEOUT if the Procedure fails to complete within the optional\r
                                             timeout. The implementation will update this variable with\r
@@ -1437,8 +1437,8 @@ InternalSmmStartupAllAPs (
 **/\r
 EFI_STATUS\r
 RegisterStartupProcedure (\r
-  IN EFI_AP_PROCEDURE    Procedure,\r
-  IN VOID                *ProcedureArguments OPTIONAL\r
+  IN     EFI_AP_PROCEDURE    Procedure,\r
+  IN OUT VOID                *ProcedureArguments OPTIONAL\r
   );\r
 \r
 /**\r