UefiCpuPkg/PiSmmCpuDxeSmm: Fix coding style

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>
This commit is contained in:
Shenglei Zhang 2019-08-07 10:06:10 +08:00 committed by Liming Gao
parent c3eefcb152
commit 073f2cede8
2 changed files with 6 additions and 6 deletions

View File

@ -1967,7 +1967,7 @@ RegisterSmmEntry (
EFI_MP_SERVICES_PROTOCOL.StartupAllAPs. EFI_MP_SERVICES_PROTOCOL.StartupAllAPs.
If caller may pass a value of NULL to deregister any existing If caller may pass a value of NULL to deregister any existing
startup procedure. startup procedure.
@param[in] ProcedureArguments Allows the caller to pass a list of parameters to the code that is @param[in,out] ProcedureArguments Allows the caller to pass a list of parameters to the code that is
run by the AP. It is an optional common mailbox between APs and run by the AP. It is an optional common mailbox between APs and
the caller to share information the caller to share information
@ -1978,7 +1978,7 @@ RegisterSmmEntry (
EFI_STATUS EFI_STATUS
RegisterStartupProcedure ( RegisterStartupProcedure (
IN EFI_AP_PROCEDURE Procedure, IN EFI_AP_PROCEDURE Procedure,
IN VOID *ProcedureArguments OPTIONAL IN OUT VOID *ProcedureArguments OPTIONAL
) )
{ {
if (Procedure == NULL && ProcedureArguments != NULL) { if (Procedure == NULL && ProcedureArguments != NULL) {

View File

@ -1311,7 +1311,7 @@ RestoreCr2 (
Note that timeout support is optional. Whether an implementation Note that timeout support is optional. Whether an implementation
supports this feature can be determined via the Attributes data supports this feature can be determined via the Attributes data
member. member.
@param[in,out] CPUStatus This optional pointer may be used to get the status code returned @param[in,out] CpuStatus This optional pointer may be used to get the status code returned
by Procedure when it completes execution on the target AP, or with by Procedure when it completes execution on the target AP, or with
EFI_TIMEOUT if the Procedure fails to complete within the optional EFI_TIMEOUT if the Procedure fails to complete within the optional
timeout. The implementation will update this variable with timeout. The implementation will update this variable with
@ -1438,7 +1438,7 @@ InternalSmmStartupAllAPs (
EFI_STATUS EFI_STATUS
RegisterStartupProcedure ( RegisterStartupProcedure (
IN EFI_AP_PROCEDURE Procedure, IN EFI_AP_PROCEDURE Procedure,
IN VOID *ProcedureArguments OPTIONAL IN OUT VOID *ProcedureArguments OPTIONAL
); );
/** /**