Coding style fix.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9689 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
rsun3 2010-01-07 13:43:40 +00:00
parent 7516c41a1e
commit 17d2c9a3af
2 changed files with 18 additions and 12 deletions

View File

@ -304,8 +304,8 @@ Error:
/** /**
Thunk service of EFI_SMM_BASE_PROTOCOL.Register(). Thunk service of EFI_SMM_BASE_PROTOCOL.Register().
@param[in] FunctionData Pointer to SMMBASE_FUNCTION_DATA. @param[in, out] FunctionData Pointer to SMMBASE_FUNCTION_DATA.
*/ **/
VOID VOID
Register ( Register (
IN OUT SMMBASE_FUNCTION_DATA *FunctionData IN OUT SMMBASE_FUNCTION_DATA *FunctionData
@ -329,8 +329,8 @@ Register (
/** /**
Thunk service of EFI_SMM_BASE_PROTOCOL.UnRegister(). Thunk service of EFI_SMM_BASE_PROTOCOL.UnRegister().
@param[in] FunctionData Pointer to SMMBASE_FUNCTION_DATA. @param[in, out] FunctionData Pointer to SMMBASE_FUNCTION_DATA.
*/ **/
VOID VOID
UnRegister ( UnRegister (
IN OUT SMMBASE_FUNCTION_DATA *FunctionData IN OUT SMMBASE_FUNCTION_DATA *FunctionData
@ -347,7 +347,7 @@ UnRegister (
@param[in] DispatchHandle The unique handle assigned by SmiHandlerRegister(). @param[in] DispatchHandle The unique handle assigned by SmiHandlerRegister().
@return Pointer to CALLBACK_INFO. @return Pointer to CALLBACK_INFO. If NULL, no callback info record is found.
**/ **/
CALLBACK_INFO * CALLBACK_INFO *
GetCallbackInfo ( GetCallbackInfo (
@ -492,8 +492,8 @@ CallbackThunk (
/** /**
Thunk service of EFI_SMM_BASE_PROTOCOL.RegisterCallback(). Thunk service of EFI_SMM_BASE_PROTOCOL.RegisterCallback().
@param[in] FunctionData Pointer to SMMBASE_FUNCTION_DATA. @param[in, out] FunctionData Pointer to SMMBASE_FUNCTION_DATA.
*/ **/
VOID VOID
RegisterCallback ( RegisterCallback (
IN OUT SMMBASE_FUNCTION_DATA *FunctionData IN OUT SMMBASE_FUNCTION_DATA *FunctionData
@ -545,8 +545,8 @@ RegisterCallback (
/** /**
Thunk service of EFI_SMM_BASE_PROTOCOL.SmmAllocatePool(). Thunk service of EFI_SMM_BASE_PROTOCOL.SmmAllocatePool().
@param[in] FunctionData Pointer to SMMBASE_FUNCTION_DATA. @param[in, out] FunctionData Pointer to SMMBASE_FUNCTION_DATA.
*/ **/
VOID VOID
HelperAllocatePool ( HelperAllocatePool (
IN OUT SMMBASE_FUNCTION_DATA *FunctionData IN OUT SMMBASE_FUNCTION_DATA *FunctionData
@ -562,8 +562,8 @@ HelperAllocatePool (
/** /**
Thunk service of EFI_SMM_BASE_PROTOCOL.SmmFreePool(). Thunk service of EFI_SMM_BASE_PROTOCOL.SmmFreePool().
@param[in] FunctionData Pointer to SMMBASE_FUNCTION_DATA. @param[in, out] FunctionData Pointer to SMMBASE_FUNCTION_DATA.
*/ **/
VOID VOID
HelperFreePool ( HelperFreePool (
IN OUT SMMBASE_FUNCTION_DATA *FunctionData IN OUT SMMBASE_FUNCTION_DATA *FunctionData
@ -653,7 +653,7 @@ SmmBaseHelperMain (
EFI_HANDLE Handle = NULL; EFI_HANDLE Handle = NULL;
/// ///
/// Locate SMM CPU Protocol which is used later to update CPU Save States /// Locate SMM CPU Protocol which is used later to retrieve/update CPU Save States
/// ///
Status = gSmst->SmmLocateProtocol (&gEfiSmmCpuProtocolGuid, NULL, (VOID **) &mSmmCpu); Status = gSmst->SmmLocateProtocol (&gEfiSmmCpuProtocolGuid, NULL, (VOID **) &mSmmCpu);
ASSERT_EFI_ERROR (Status); ASSERT_EFI_ERROR (Status);

View File

@ -42,6 +42,12 @@ EFI_SMM_BASE2_PROTOCOL *mSmmBase2 = NULL;
EFI_SMM_COMMUNICATION_PROTOCOL *mSmmCommunication = NULL; EFI_SMM_COMMUNICATION_PROTOCOL *mSmmCommunication = NULL;
EFI_SMM_BASE_HELPER_READY_PROTOCOL *mSmmBaseHelperReady = NULL; EFI_SMM_BASE_HELPER_READY_PROTOCOL *mSmmBaseHelperReady = NULL;
/**
Determine if in SMM mode.
@retval TRUE In SMM mode.
@retval FALSE Not in SMM mode.
**/
BOOLEAN BOOLEAN
IsInSmm ( IsInSmm (
VOID VOID