TianoCore EDK2 master
|
#include <PiSmm.h>
#include <Protocol/SmmBase2.h>
#include <Library/SmmServicesTableLib.h>
#include <Library/DebugLib.h>
Go to the source code of this file.
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 |
SMM Services Table Library.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file SmmServicesTableLib.c.
BOOLEAN EFIAPI InSmm | ( | VOID | ) |
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). |
Definition at line 71 of file SmmServicesTableLib.c.
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. |
Definition at line 27 of file SmmServicesTableLib.c.
EFI_SMM_SYSTEM_TABLE2* gSmst = NULL |
Cache pointer to the SMM Services Table
Definition at line 14 of file SmmServicesTableLib.c.