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>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user