]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg: Add InSmm() API in PiSmmCoreSmmServicesTableLib instance
authorGao, Liming <liming.gao@intel.com>
Wed, 5 Nov 2014 12:09:22 +0000 (12:09 +0000)
committerlgao4 <lgao4@Edk2>
Wed, 5 Nov 2014 12:09:22 +0000 (12:09 +0000)
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

MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.c

index 1c81afdf6eb37e9cae0c7f8663bfe4dad5f48e69..788fafae35c376c7b39156ef73de1b6e819f20d5 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   SMM Core SMM Services Table Library.\r
 \r
-  Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -38,3 +38,23 @@ SmmCoreSmmServicesTableLibConstructor (
   gSmst = &gSmmCoreSmst;\r
   return EFI_SUCCESS;\r
 }\r
+\r
+/**\r
+  This function allows the caller to determine if the driver is executing in \r
+  System Management Mode(SMM).\r
+\r
+  This function returns TRUE if the driver is executing in SMM and FALSE if the \r
+  driver is not executing in SMM.\r
+\r
+  @retval  TRUE  The driver is executing in System Management Mode (SMM).\r
+  @retval  FALSE The driver is not executing in System Management Mode (SMM). \r
+\r
+**/\r
+BOOLEAN\r
+EFIAPI\r
+InSmm (\r
+  VOID\r
+  )\r
+{\r
+  return TRUE;\r
+}\r