]> git.proxmox.com Git - mirror_edk2.git/commit
StandaloneMmPkg/StandaloneMmMemLib: Change max address computation
authorGirish Mahadevan <gmahadevan@nvidia.com>
Mon, 30 Jan 2023 16:28:58 +0000 (16:28 +0000)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 9 Feb 2023 17:34:32 +0000 (17:34 +0000)
commit289d93b79c18f42b9dd09770a22d15a11fd40670
tree9e166471885a37b9b83044568f72b933c0a4bd16
parent173a7a7daaad560cd69e1000faca1d2b91774c46
StandaloneMmPkg/StandaloneMmMemLib: Change max address computation

Currently the standalonemmlibinternal assumes the max physical bits
to be 36 which is causing issues on v8 architectures.
Instead use the MAX_ALLOC_ADDRESS macro to determine the maximum
allowed address rather than recomputing it locally.

Signed-off-by: Girish Mahadevan <gmahadevan@nvidia.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
StandaloneMmPkg/Library/StandaloneMmMemLib/ArmStandaloneMmMemLibInternal.c