-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement MmServicesTableLib for MM Core (#730)
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. cherry-pick from 03d53bb, d4dff6b, 1f75b27
- Loading branch information
Showing
5 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
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
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
14 changes: 14 additions & 0 deletions
14
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,14 @@ | ||
/** @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> | ||
|
||
EFI_MM_SYSTEM_TABLE *gMmst = NULL; |
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