MdeModulePkg: Add InSmm() API in PiSmmCoreSmmServicesTableLib instance

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gao, Liming <liming.gao@intel.com>
Reviewed-by: Fan, Jeff <jeff.fan@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16301 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Gao, Liming 2014-11-05 12:09:22 +00:00 committed by lgao4
parent 658bf43ecf
commit be91c77069
1 changed files with 21 additions and 1 deletions

View File

@ -1,7 +1,7 @@
/** @file
SMM Core SMM Services Table Library.
Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
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
@ -38,3 +38,23 @@ SmmCoreSmmServicesTableLibConstructor (
gSmst = &gSmmCoreSmst;
return EFI_SUCCESS;
}
/**
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.
@retval TRUE The driver is executing in System Management Mode (SMM).
@retval FALSE The driver is not executing in System Management Mode (SMM).
**/
BOOLEAN
EFIAPI
InSmm (
VOID
)
{
return TRUE;
}