From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=217.140.101.70; helo=foss.arm.com; envelope-from=jagadeesh.ujja@arm.com; receiver=edk2-devel@lists.01.org Received: from foss.arm.com (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by ml01.01.org (Postfix) with ESMTP id 78DC121CAD9B2 for ; Fri, 14 Dec 2018 04:13:48 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 45486EBD; Fri, 14 Dec 2018 04:13:48 -0800 (PST) Received: from usa.arm.com (a075555-lin.blr.arm.com [10.162.2.152]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 7E1AD3F575; Fri, 14 Dec 2018 04:13:46 -0800 (PST) From: Jagadeesh Ujja To: edk2-devel@lists.01.org, liming.gao@intel.com, chao.b.zhang@intel.com, leif.lindholm@linaro.org, ard.biesheuvel@linaro.org Date: Fri, 14 Dec 2018 17:43:18 +0530 Message-Id: <1544789607-11316-5-git-send-email-jagadeesh.ujja@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1544789607-11316-1-git-send-email-jagadeesh.ujja@arm.com> References: <1544789607-11316-1-git-send-email-jagadeesh.ujja@arm.com> Subject: [PATCH 04/13] MdePkg/Include: add StandaloneMmServicesTableLib header file X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 X-List-Received-Date: Fri, 14 Dec 2018 12:13:48 -0000 Some of the existing DXE drivers can be refactored to execute within the Standalone MM execution environment as well. Allow such drivers to get access to the Standalone MM services tables. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jagadeesh Ujja --- MdePkg/Include/Library/StandaloneMmServicesTableLib.h | 25 ++++++++++++++++++++ MdePkg/MdePkg.dec | 4 ++++ 2 files changed, 29 insertions(+) diff --git a/MdePkg/Include/Library/StandaloneMmServicesTableLib.h b/MdePkg/Include/Library/StandaloneMmServicesTableLib.h new file mode 100644 index 0000000..db310ac --- /dev/null +++ b/MdePkg/Include/Library/StandaloneMmServicesTableLib.h @@ -0,0 +1,25 @@ +/** @file + Provides a service to retrieve a pointer to the Standalone MM Services Table. + Only available to Standalone MM module types. + +Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
+Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.
+ +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 +http://opensource.org/licenses/bsd-license.php + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +**/ + +#ifndef __MM_SERVICES_TABLE_LIB_H__ +#define __MM_SERVICES_TABLE_LIB_H__ + +#include + +extern EFI_MM_SYSTEM_TABLE *gMmst; + +#endif diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec index af694fc..17c90c2 100644 --- a/MdePkg/MdePkg.dec +++ b/MdePkg/MdePkg.dec @@ -243,6 +243,10 @@ ## SafeIntLib|Include/Library/SafeIntLib.h + ## @libraryclass Provides a service to retrieve a pointer to the Standalone MM Services Table. + # Only available to MM_STANDALONE module types. + MmServicesTableLib|Include/Library/StandaloneMmServicesTableLib.h + [LibraryClasses.IA32, LibraryClasses.X64] ## @libraryclass Abstracts both S/W SMI generation and detection. ## -- 2.7.4