Functions | |
EFI_STATUS EFIAPI | SmmServicesTableLibConstructor (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
BOOLEAN EFIAPI | InSmm (VOID) |
Variables | |
EFI_SMM_SYSTEM_TABLE2 * | gSmst = NULL |
Copyright (c) 2009 - 2015, 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.
This function allows the caller to determine if the driver is executing in System Management Mode(SMM).
This function returns TRUE if the driver is executing in SMM and FALSE if the driver is not executing in SMM.
TRUE | The driver is executing in System Management Mode (SMM). | |
FALSE | The driver is not executing in System Management Mode (SMM). |
References TRUE.
EFI_STATUS EFIAPI SmmServicesTableLibConstructor | ( | IN EFI_HANDLE | ImageHandle, | |
IN EFI_SYSTEM_TABLE * | SystemTable | |||
) |
The constructor function caches the pointer of SMM Services Table.
ImageHandle | The firmware allocated handle for the EFI image. | |
SystemTable | A pointer to the EFI System Table. |
EFI_SUCCESS | The constructor always returns EFI_SUCCESS. |
References ASSERT, ASSERT_EFI_ERROR, EFI_SUCCESS, gEfiSmmBase2ProtocolGuid, NULL, and VOID.
EFI_SMM_SYSTEM_TABLE2* gSmst = NULL |
Cache pointer to the SMM Services Table
Referenced by FreeAlignedPages(), FreePages(), FreePool(), InternalAllocateAlignedPages(), InternalAllocatePages(), InternalAllocatePool(), IoReadWorker(), IoWriteWorker(), MmioReadWorker(), MmioWriteWorker(), PciLibConstructor(), PeriodicSmiDispatchFunction(), PeriodicSmiEnable(), and SmmPeriodicSmiLibConstructor().