mirror of
https://github.com/acidanthera/audk.git
synced 2025-08-18 08:08:09 +02:00
Remove unnecessary check in API MmIsBufferOutsideMmValid of StandaloneMmMemLib. The API is used to check if a input buffer is outside MMRAM and inside a valid non-MMRAM range. Previously, the API only checks if the input buffer is overlapped with MMRAM range. In the last commit, we add logic to check if the input buffer is inside valid non-MMRAM ranges reported by the resource HOB. Since the resource HOB only covers valid non-MMRAM ranges, we doesn't need to check if the input buffer is inside the MMRAM anymore. Signed-off-by: Dun Tan <dun.tan@intel.com>
53 lines
1.6 KiB
INI
53 lines
1.6 KiB
INI
## @file
|
|
# Instance of MM memory check library.
|
|
#
|
|
# MM memory check library implementation. This library consumes MM_ACCESS_PROTOCOL
|
|
# to get MMRAM information. In order to use this library instance, the platform should produce
|
|
# all MMRAM range via MM_ACCESS_PROTOCOL, including the range for firmware (like MM Core
|
|
# and MM driver) and/or specific dedicated hardware.
|
|
#
|
|
# Copyright (c) 2015 - 2024, 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
|
|
#
|
|
##
|
|
|
|
[Defines]
|
|
INF_VERSION = 0x0001001A
|
|
BASE_NAME = MemLib
|
|
FILE_GUID = EA355F14-6409-4716-829F-37B3BC7C7F26
|
|
MODULE_TYPE = MM_STANDALONE
|
|
VERSION_STRING = 1.0
|
|
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 = IA32 X64 AARCH64 ARM
|
|
#
|
|
|
|
[Sources.Common]
|
|
StandaloneMmMemLib.c
|
|
StandaloneMmMemLibInternal.h
|
|
|
|
[Sources.IA32, Sources.X64]
|
|
X86StandaloneMmMemLibInternal.c
|
|
|
|
[Sources.AARCH64, Sources.ARM]
|
|
ArmStandaloneMmMemLibInternal.c
|
|
|
|
[Packages]
|
|
MdePkg/MdePkg.dec
|
|
StandaloneMmPkg/StandaloneMmPkg.dec
|
|
|
|
[LibraryClasses]
|
|
BaseMemoryLib
|
|
DebugLib
|
|
HobLib
|
|
MemoryAllocationLib
|