StandaloneMmPkg: build for 32bit arm machines
This change allows to build StandaloneMmPkg components for 32bit Arm StandaloneMm firmware. This change mainly moves AArch64/ source files to Arm/ side directory for several components: StandaloneMmCpu, StandaloneMmCoreEntryPoint and StandaloneMmMemLib. The source file is built for both 32b and 64b Arm targets. Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
This commit is contained in:
committed by
mergify[bot]
parent
b7f0226a46
commit
a776bbabd9
@@ -20,6 +20,13 @@
|
||||
//
|
||||
extern EFI_PHYSICAL_ADDRESS mMmMemLibInternalMaximumSupportAddress;
|
||||
|
||||
#ifdef MDE_CPU_AARCH64
|
||||
#define ARM_PHYSICAL_ADDRESS_BITS 36
|
||||
#endif
|
||||
#ifdef MDE_CPU_ARM
|
||||
#define ARM_PHYSICAL_ADDRESS_BITS 32
|
||||
#endif
|
||||
|
||||
/**
|
||||
Calculate and save the maximum support address.
|
||||
|
||||
@@ -31,7 +38,7 @@ MmMemLibInternalCalculateMaximumSupportAddress (
|
||||
{
|
||||
UINT8 PhysicalAddressBits;
|
||||
|
||||
PhysicalAddressBits = 36;
|
||||
PhysicalAddressBits = ARM_PHYSICAL_ADDRESS_BITS;
|
||||
|
||||
//
|
||||
// Save the maximum support address in one global variable
|
@@ -28,7 +28,7 @@
|
||||
#
|
||||
# The following information is for reference only and not required by the build tools.
|
||||
#
|
||||
# VALID_ARCHITECTURES = IA32 X64 AARCH64
|
||||
# VALID_ARCHITECTURES = IA32 X64 AARCH64 ARM
|
||||
#
|
||||
|
||||
[Sources.Common]
|
||||
@@ -37,8 +37,8 @@
|
||||
[Sources.IA32, Sources.X64]
|
||||
X86StandaloneMmMemLibInternal.c
|
||||
|
||||
[Sources.AARCH64]
|
||||
AArch64/StandaloneMmMemLibInternal.c
|
||||
[Sources.AARCH64, Sources.ARM]
|
||||
ArmStandaloneMmMemLibInternal.c
|
||||
|
||||
[Packages]
|
||||
MdePkg/MdePkg.dec
|
||||
|
Reference in New Issue
Block a user