diff options
author | Gao, Liming <liming.gao@intel.com> | 2014-11-05 12:09:22 +0000 |
---|---|---|
committer | lgao4 <lgao4@Edk2> | 2014-11-05 12:09:22 +0000 |
commit | be91c7706958e822885ebec36b48483b142755cd (patch) | |
tree | 271b62d3d01bdb97b1a3b4d280d4bc5e0df094b2 | |
parent | 658bf43ecfe96df1cdc005a15f0af1dcc79de09b (diff) | |
download | edk2-platforms-be91c7706958e822885ebec36b48483b142755cd.tar.xz |
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
-rw-r--r-- | MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.c | 22 |
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;
+}
|