TianoCore EDK2 master
Loading...
Searching...
No Matches
ArmStandaloneMmMemLibInternal.c File Reference

Go to the source code of this file.

Functions

VOID MmMemLibCalculateMaximumSupportAddress (VOID)
 
VOID MmMemLibInitializeValidNonMmramRanges (VOID)
 
VOID MmMemLibFreeValidNonMmramRanges (VOID)
 
BOOLEAN MmMemLibIsValidNonMmramRange (IN EFI_PHYSICAL_ADDRESS Buffer, IN UINT64 Length)
 

Variables

EFI_PHYSICAL_ADDRESS mMmMemLibInternalMaximumSupportAddress
 

Detailed Description

Internal ARCH Specific file 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.
Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file ArmStandaloneMmMemLibInternal.c.

Function Documentation

◆ MmMemLibCalculateMaximumSupportAddress()

VOID MmMemLibCalculateMaximumSupportAddress ( VOID  )

Calculate and save the maximum support address.

Definition at line 26 of file ArmStandaloneMmMemLibInternal.c.

◆ MmMemLibFreeValidNonMmramRanges()

VOID MmMemLibFreeValidNonMmramRanges ( VOID  )

Deinitialize cached non-Mmram Ranges.

Definition at line 52 of file ArmStandaloneMmMemLibInternal.c.

◆ MmMemLibInitializeValidNonMmramRanges()

VOID MmMemLibInitializeValidNonMmramRanges ( VOID  )

Initialize valid non-Mmram Ranges from Resource HOB.

Definition at line 40 of file ArmStandaloneMmMemLibInternal.c.

◆ MmMemLibIsValidNonMmramRange()

BOOLEAN MmMemLibIsValidNonMmramRange ( IN EFI_PHYSICAL_ADDRESS  Buffer,
IN UINT64  Length 
)

This function check if the buffer is valid non-MMRAM memory range.

Parameters
[in]BufferThe buffer start address to be checked.
[in]LengthThe buffer length to be checked.
Return values
TRUEThis buffer is valid non-MMRAM memory range.
FALSEThis buffer is not valid non-MMRAM memory range.

Definition at line 69 of file ArmStandaloneMmMemLibInternal.c.

Variable Documentation

◆ mMmMemLibInternalMaximumSupportAddress

EFI_PHYSICAL_ADDRESS mMmMemLibInternalMaximumSupportAddress
extern

Definition at line 21 of file StandaloneMmMemLib.c.