diff options
author | Kun Qin <kun.q@outlook.com> | 2020-12-18 03:09:24 -0800 |
---|---|---|
committer | Kun Qin <kun.q@outlook.com> | 2021-02-01 10:01:02 -0800 |
commit | 037ccb09a28cb9c4528c0b638e9dc1d71ead28d1 (patch) | |
tree | 5a5681f626a12217381ce17d6b9f0495e1727bb4 /StandaloneMmPkg/Library/StandaloneMmMemLib/StandaloneMmMemLib.inf | |
parent | 2b9006762d2fb3637bd3a7d472f66c51aa8246f0 (diff) | |
download | edk2-037ccb09a28cb9c4528c0b638e9dc1d71ead28d1.tar.gz edk2-037ccb09a28cb9c4528c0b638e9dc1d71ead28d1.tar.bz2 edk2-037ccb09a28cb9c4528c0b638e9dc1d71ead28d1.zip |
StandaloneMmPkg: StandaloneMmMemLib: Extends support for X64 architecture
This change extends StandaloneMmMemLib library to support X64
architecture. The implementation is ported from MdePkg/Library/SmmMemLib.
Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
Cc: Sami Mujawar <sami.mujawar@arm.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Supreeth Venkatesh <supreeth.venkatesh@arm.com>
Signed-off-by: Kun Qin <kun.q@outlook.com>
Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>
Diffstat (limited to 'StandaloneMmPkg/Library/StandaloneMmMemLib/StandaloneMmMemLib.inf')
-rw-r--r-- | StandaloneMmPkg/Library/StandaloneMmMemLib/StandaloneMmMemLib.inf | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/StandaloneMmPkg/Library/StandaloneMmMemLib/StandaloneMmMemLib.inf b/StandaloneMmPkg/Library/StandaloneMmMemLib/StandaloneMmMemLib.inf index 49da02e54e..062b0d7a11 100644 --- a/StandaloneMmPkg/Library/StandaloneMmMemLib/StandaloneMmMemLib.inf +++ b/StandaloneMmPkg/Library/StandaloneMmMemLib/StandaloneMmMemLib.inf @@ -8,6 +8,7 @@ #
# Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
# Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.<BR>
+# Copyright (c) Microsoft Corporation.
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
@@ -22,16 +23,20 @@ PI_SPECIFICATION_VERSION = 0x00010032
LIBRARY_CLASS = MemLib|MM_STANDALONE MM_CORE_STANDALONE
CONSTRUCTOR = MemLibConstructor
+ DESTRUCTOR = MemLibDestructor
#
# The following information is for reference only and not required by the build tools.
#
-# VALID_ARCHITECTURES = AARCH64
+# VALID_ARCHITECTURES = IA32 X64 AARCH64
#
[Sources.Common]
StandaloneMmMemLib.c
+[Sources.IA32, Sources.X64]
+ X86StandaloneMmMemLibInternal.c
+
[Sources.AARCH64]
AArch64/StandaloneMmMemLibInternal.c
@@ -42,3 +47,9 @@ [LibraryClasses]
BaseMemoryLib
DebugLib
+ HobLib
+ MemoryAllocationLib
+
+[Guids]
+ gMmCoreDataHobGuid ## SOMETIMES_CONSUMES ## HOB
+ gEfiMmPeiMmramMemoryReserveGuid ## SOMETIMES_CONSUMES ## HOB
|