SecurityPkg/VariableAuthenticated/EsalVariableDxeSal/InitVariable.c File Reference


Functions

SAL_RETURN_REGS EFIAPI EsalVariableCommonEntry (IN UINT64 FunctionId, IN UINT64 Arg2, IN UINT64 Arg3, IN UINT64 Arg4, IN UINT64 Arg5, IN UINT64 Arg6, IN UINT64 Arg7, IN UINT64 Arg8, IN BOOLEAN VirtualMode, IN ESAL_VARIABLE_GLOBAL *Global)
VOID EFIAPI VariableClassAddressChangeEvent (IN EFI_EVENT Event, IN VOID *Context)
EFI_STATUS EFIAPI VariableServiceInitialize (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)

Variables

EFI_EVENT mEfiVirtualNotifyEvent

Detailed Description

Entrypoint of Extended SAL variable service module.

Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.


Function Documentation

SAL_RETURN_REGS EFIAPI EsalVariableCommonEntry ( IN UINT64  FunctionId,
IN UINT64  Arg2,
IN UINT64  Arg3,
IN UINT64  Arg4,
IN UINT64  Arg5,
IN UINT64  Arg6,
IN UINT64  Arg7,
IN UINT64  Arg8,
IN BOOLEAN  VirtualMode,
IN ESAL_VARIABLE_GLOBAL Global 
)

Common entry for Extended SAL Variable Services Class.

This is the common entry of all functions of Extended SAL Variable Services Class.

Parameters:
[in] FunctionId The Function ID of member function in Extended SAL Variable Services Class.
[in] Arg2 The 2nd parameter for SAL procedure call.
[in] Arg3 The 3rd parameter for SAL procedure call.
[in] Arg4 The 4th parameter for SAL procedure call.
[in] Arg5 The 5th parameter for SAL procedure call.
[in] Arg6 The 6th parameter for SAL procedure call.
[in] Arg7 The 7th parameter for SAL procedure call.
[in] Arg8 The 8th parameter for SAL procedure call.
[in] VirtualMode The current calling mode for this function.
[in] Global The context of this Extended SAL Variable Services Class call.
Returns:
The register of SAL.

References EsalGetNextVariableName(), EsalGetVariable(), EsalQueryVariableInfo(), EsalSetVariable(), and UINTN().

Referenced by VariableServiceInitialize().

VOID EFIAPI VariableClassAddressChangeEvent ( IN EFI_EVENT  Event,
IN VOID *  Context 
)

Notification function of EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE.

This is a notification function registered on EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE event. It convers pointer to new virtual address.

Parameters:
[in] Event The event whose notification function is being invoked.
[in] Context The pointer to the notification function's context.

References ESAL_VARIABLE_GLOBAL::AuthenticatedVariableGuid, ESAL_VARIABLE_GLOBAL::CertRsa2048Sha256Guid, ESAL_VARIABLE_GLOBAL::GlobalVariableGuid, ESAL_VARIABLE_GLOBAL::HashContext, ESAL_VARIABLE_GLOBAL::ImageSecurityDatabaseGuid, ESAL_VARIABLE_GLOBAL::LangCodes, mVariableModuleGlobal, VARIABLE_GLOBAL::NonVolatileVariableBase, NUM_VAR_NAME, Physical, ESAL_VARIABLE_GLOBAL::PlatformLang, ESAL_VARIABLE_GLOBAL::PlatformLangCodes, UINTN(), ESAL_VARIABLE_GLOBAL::VariableGlobal, ESAL_VARIABLE_GLOBAL::VariableName, Virtual, and VARIABLE_GLOBAL::VolatileVariableBase.

Referenced by VariableServiceInitialize().

EFI_STATUS EFIAPI VariableServiceInitialize ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE *  SystemTable 
)

Entry point of Extended SAL Variable service module.

This function is the entry point of Extended SAL Variable service module. It registers all functions of Extended SAL Variable class, initializes variable store for non-volatile and volatile variables, and registers notification function for EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE event.

Parameters:
[in] ImageHandle The Image handle of this driver.
[in] SystemTable The pointer of EFI_SYSTEM_TABLE.
Return values:
EFI_SUCCESS Extended SAL Variable Services Class successfully registered.

References AutenticatedVariableServiceInitialize(), EFI_STATUS(), EsalVariableCommonEntry(), FlushHob2Nv(), mEfiVirtualNotifyEvent, mVariableModuleGlobal, VariableClassAddressChangeEvent(), and VariableCommonInitialize().


Variable Documentation


Generated on Thu Sep 24 23:44:25 2015 for SecurityPkg[ALL] by  doxygen 1.5.7.1