]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Library/SmmServicesTableLib.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / MdePkg / Include / Library / SmmServicesTableLib.h
CommitLineData
b7c5912a 1/** @file\r
2 Provides a service to retrieve a pointer to the SMM Services Table.\r
3 Only available to SMM module types.\r
4\r
9095d37b 5Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
9344f092 6SPDX-License-Identifier: BSD-2-Clause-Patent\r
b7c5912a 7\r
8**/\r
9\r
10#ifndef __SMM_SERVICES_TABLE_LIB_H__\r
11#define __SMM_SERVICES_TABLE_LIB_H__\r
12\r
13#include <PiSmm.h>\r
14\r
15///\r
16/// Cache pointer to the SMM Services Table\r
17///\r
2f88bd3a 18extern EFI_SMM_SYSTEM_TABLE2 *gSmst;\r
b7c5912a 19\r
20/**\r
9095d37b 21 This function allows the caller to determine if the driver is executing in\r
b7c5912a 22 System Management Mode(SMM).\r
23\r
9095d37b 24 This function returns TRUE if the driver is executing in SMM and FALSE if the\r
b7c5912a 25 driver is not executing in SMM.\r
26\r
27 @retval TRUE The driver is executing in System Management Mode (SMM).\r
9095d37b 28 @retval FALSE The driver is not executing in System Management Mode (SMM).\r
b7c5912a 29\r
30**/\r
31BOOLEAN\r
32EFIAPI\r
33InSmm (\r
34 VOID\r
35 );\r
36\r
37#endif\r