summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib
diff options
context:
space:
mode:
authorGao, Liming <liming.gao@intel.com>2014-11-05 12:09:22 +0000
committerlgao4 <lgao4@Edk2>2014-11-05 12:09:22 +0000
commitbe91c7706958e822885ebec36b48483b142755cd (patch)
tree271b62d3d01bdb97b1a3b4d280d4bc5e0df094b2 /MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib
parent658bf43ecfe96df1cdc005a15f0af1dcc79de09b (diff)
downloadedk2-be91c7706958e822885ebec36b48483b142755cd.tar.gz
edk2-be91c7706958e822885ebec36b48483b142755cd.tar.bz2
edk2-be91c7706958e822885ebec36b48483b142755cd.zip
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
Diffstat (limited to 'MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib')
-rw-r--r--MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.c b/MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.c
index 1c81afdf6e..788fafae35 100644
--- a/MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.c
+++ b/MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.c
@@ -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;
+}