-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
StandaloneMmPkg: StandaloneMmServicesTableLibCore: Introduce core ins…
…tance This change added the long vacant `MmServicesTableLib` for MM core instance. The implementation will use extern to link the gMmst to the global MM table, so that the libraries can use gMmst more generically. Signed-off-by: Kun Qin <kuqin@microsoft.com>
- Loading branch information
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
StandaloneMmPkg/Library/StandaloneMmServicesTableLib/StandaloneMmServicesTableLibCore.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** @file | ||
MM Services Table Library. | ||
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR> | ||
Copyright (c) 2018, Linaro, Ltd. All rights reserved.<BR> | ||
SPDX-License-Identifier: BSD-2-Clause-Patent | ||
**/ | ||
|
||
#include <PiMm.h> | ||
#include <Library/MmServicesTableLib.h> | ||
#include <Library/DebugLib.h> | ||
|
||
extern EFI_MM_SYSTEM_TABLE gMmCoreMmst; | ||
|
||
EFI_MM_SYSTEM_TABLE *gMmst = &gMmCoreMmst; |
28 changes: 28 additions & 0 deletions
28
StandaloneMmPkg/Library/StandaloneMmServicesTableLib/StandaloneMmServicesTableLibCore.inf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
## @file | ||
# Standalone MM Services Table Library. | ||
# | ||
# Copyright (c) Microsoft Corporation. | ||
# | ||
# SPDX-License-Identifier: BSD-2-Clause-Patent | ||
# | ||
# | ||
## | ||
|
||
[Defines] | ||
INF_VERSION = 0x0001001B | ||
BASE_NAME = StandaloneMmServicesTableLibCore | ||
FILE_GUID = A9E61A64-FDD4-4162-9321-C6769FB96E3B | ||
MODULE_TYPE = MM_CORE_STANDALONE | ||
VERSION_STRING = 1.0 | ||
LIBRARY_CLASS = MmServicesTableLib|MM_CORE_STANDALONE | ||
PI_SPECIFICATION_VERSION = 0x00010032 | ||
|
||
# | ||
# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 | ||
# | ||
|
||
[Sources] | ||
StandaloneMmServicesTableLibCore.c | ||
|
||
[Packages] | ||
MdePkg/MdePkg.dec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters