2009-12-23 07:44:33 +01:00
|
|
|
/** @file
|
|
|
|
Provides a service to retrieve a pointer to the SMM Services Table.
|
|
|
|
Only available to SMM module types.
|
|
|
|
|
2018-06-27 15:11:33 +02:00
|
|
|
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 01:06:00 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2009-12-23 07:44:33 +01:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef __SMM_SERVICES_TABLE_LIB_H__
|
|
|
|
#define __SMM_SERVICES_TABLE_LIB_H__
|
|
|
|
|
|
|
|
#include <PiSmm.h>
|
|
|
|
|
|
|
|
///
|
|
|
|
/// Cache pointer to the SMM Services Table
|
|
|
|
///
|
2021-12-05 23:54:05 +01:00
|
|
|
extern EFI_SMM_SYSTEM_TABLE2 *gSmst;
|
2009-12-23 07:44:33 +01:00
|
|
|
|
|
|
|
/**
|
2018-06-27 15:11:33 +02:00
|
|
|
This function allows the caller to determine if the driver is executing in
|
2009-12-23 07:44:33 +01:00
|
|
|
System Management Mode(SMM).
|
|
|
|
|
2018-06-27 15:11:33 +02:00
|
|
|
This function returns TRUE if the driver is executing in SMM and FALSE if the
|
2009-12-23 07:44:33 +01:00
|
|
|
driver is not executing in SMM.
|
|
|
|
|
|
|
|
@retval TRUE The driver is executing in System Management Mode (SMM).
|
2018-06-27 15:11:33 +02:00
|
|
|
@retval FALSE The driver is not executing in System Management Mode (SMM).
|
2009-12-23 07:44:33 +01:00
|
|
|
|
|
|
|
**/
|
|
|
|
BOOLEAN
|
|
|
|
EFIAPI
|
|
|
|
InSmm (
|
|
|
|
VOID
|
|
|
|
);
|
|
|
|
|
|
|
|
#endif
|