TianoCore EDK2 master
Loading...
Searching...
No Matches
PiSmmCoreSmmServicesTableLib.c File Reference
#include <PiSmm.h>
#include <Library/SmmServicesTableLib.h>
#include <Library/DebugLib.h>

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI SmmCoreSmmServicesTableLibConstructor (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 
BOOLEAN EFIAPI InSmm (VOID)
 

Variables

EFI_SMM_SYSTEM_TABLE2gSmst = NULL
 
EFI_SMM_SYSTEM_TABLE2 gSmmCoreSmst
 

Detailed Description

SMM Core SMM Services Table Library.

Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file PiSmmCoreSmmServicesTableLib.c.

Function Documentation

◆ InSmm()

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.

Return values
TRUEThe driver is executing in System Management Mode (SMM).
FALSEThe driver is not executing in System Management Mode (SMM).

Definition at line 49 of file PiSmmCoreSmmServicesTableLib.c.

◆ SmmCoreSmmServicesTableLibConstructor()

EFI_STATUS EFIAPI SmmCoreSmmServicesTableLibConstructor ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

The constructor function caches the pointer of SMM Services Table.

Parameters
ImageHandleThe firmware allocated handle for the EFI image.
SystemTableA pointer to the EFI System Table.
Return values
EFI_SUCCESSThe constructor always returns EFI_SUCCESS.

Definition at line 27 of file PiSmmCoreSmmServicesTableLib.c.

Variable Documentation

◆ gSmmCoreSmst

EFI_SMM_SYSTEM_TABLE2 gSmmCoreSmst
extern

Definition at line 19 of file PiSmmCore.c.

◆ gSmst

Cache pointer to the SMM Services Table

Definition at line 13 of file PiSmmCoreSmmServicesTableLib.c.