From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by mx.groups.io with SMTP id smtpd.web11.6756.1591433533954126122 for ; Sat, 06 Jun 2020 01:52:14 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=zs2ocOE6; spf=pass (domain: linaro.org, ip: 209.85.221.66, mailfrom: ilias.apalodimas@linaro.org) Received: by mail-wr1-f66.google.com with SMTP id l10so12027590wrr.10 for ; Sat, 06 Jun 2020 01:52:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2BPIKRqHVpYAAT+WIFqdU+pm61hUCM+709Ws3wL7Xz8=; b=zs2ocOE6mtWes/rVDmJc2TBonpfiPYSmS0sF2XlwDs1pF/cv2TbkU8+Uf9XPLPBZpk RHa3tBQ037F7f/dekeJsAzCfdN/yBwVGdce4md6wM/0lKBl7UVrpw0ToBJGlEuovzAAD lk9wq4NKntL7vWvPlzo85wWLMroeXdHzKL6UnvigGwliPJmfMJAnlaAfQLseWlDaUYgy oENdgYX6KvObrgeq2pBbCYebMbi7psM4TMt932vgkKgXszcUK7Y2HYRj68/juYF01Y6L f8/ip/d4TFbu60Yke9acydthw83WPLqi8H25j4bUpmAnaK2M1tbRc74CVTNvryHyheAw QWxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2BPIKRqHVpYAAT+WIFqdU+pm61hUCM+709Ws3wL7Xz8=; b=UNgM8/moAtNzTj6k4o8kgg0XYmF5/j9ABIsDbqFPdqvoAYl3uLuc1XHnoNyOolBlGr YIJspEWAstFMZLSyzEI/xMIztZZXKP+1aMYluZzt68oOzSxLaiWngZCsT8ipatxljgFr WTBHJ9jwFqZZ1U+fpWHR91KkrzQo9u4Vi6dAUyu7XSagRCfb6YToMk0Hh5K9t6lw1K9+ RExGfCec7vVG4a5ZfUfab6hfGNKVMtIXniivGotwlyVMrByj+CsTeus7xJ0T4Jjl7eU3 gaNgDlC2VbHnk74s3ha45wPRLZ6aOjoz9tUQXPovwWGy2Hn4Ww7krJtD6zlLS9kxhzuG WZjA== X-Gm-Message-State: AOAM530t7PA4s1JkVj3pi7H8M/Ol6yYRJ/rJ1rqszL7L8ff9n7eTUBl4 AItb8v9/JB/ORmviaQxR71dG+Q== X-Google-Smtp-Source: ABdhPJxU5F9x0AyRlBMk/eO7FeVmJQoEbtVIHOqK3//bZvPwWKDRSgG05tmK34hgW+7XSPaRhUj1jA== X-Received: by 2002:a5d:4d4d:: with SMTP id a13mr13863586wru.252.1591433532275; Sat, 06 Jun 2020 01:52:12 -0700 (PDT) Return-Path: Received: from apalos.home ([2a02:587:460c:6776:2e56:dcff:fe9a:8f06]) by smtp.gmail.com with ESMTPSA id w17sm15752517wra.71.2020.06.06.01.52.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jun 2020 01:52:11 -0700 (PDT) From: Ilias Apalodimas To: ard.biesheuvel@arm.com, sami.mujawar@arm.com, jiewen.yao@intel.com, supreeth.venkatesh@arm.com Cc: devel@edk2.groups.io, Ilias Apalodimas Subject: [RFC edk2 v1] StandaloneMmPkg: Relocatable version for StandAloneMM Date: Sat, 6 Jun 2020 11:52:09 +0300 Message-Id: <20200606085209.1161547-1-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable With work currently being done in OP-TEE [1] and U-boot [2], we can compile StandAloneMM as a single binary [3] and load it from OP-TEE in an isolated partition that behahes similarly to SPM. By doing so we reuse existing code from EDK2 for the UEFI variable storage regardless of the firmware implementation. Another advantage is that OP-TEE combined with U-Boot's OP-TEE supplicant can use the RPMB partition of an eMMC and securely store EFI variables instead of solely relying on a secure world flash [4]. Since StMM can be compiled as a binary that runs on OP-TEE, we need to make it self-relocatable. OP-TEE load address can be arbitrary depending on memory layout or ASLR. We could keep the current StandAloneMM implementation as-is and duplicate StandaloneMmCoreEntryPoint.c. Instead add two more .inf files for the relocatable option and the relevant linker script, move the current entry point into asm and add a FeaturePcd for enabling/disabling the relocatable option. [1] https://github.com/apalos/optee_os/tree/stmm_upstream_03_clean [2] https://github.com/u-boot/u-boot/blob/master/lib/efi_loader/efi_variabl= e_tee.c [3] https://git.linaro.org/people/ilias.apalodimas/edk2-platforms.git/tree/= Platform/QemuVirt/PlatformStandaloneMm.dsc?h=3Dstmm_reloc_combined [4] https://git.linaro.org/people/ilias.apalodimas/edk2-platforms.git/tree/= Silicon/QemuVirt/Drivers/OpTeeRpmbFv/OpTeeRpmbFv.c?h=3Dstmm_reloc_combined Signed-off-by: Ilias Apalodimas --- StandaloneMmPkg/Core/Scripts/StMM-PIE.lds | 54 +++++++++ StandaloneMmPkg/Core/StandaloneMmCore.inf | 3 + .../Core/StandaloneMmCoreRelocatable.inf | 80 ++++++++++++++ .../AArch64/ModuleEntryPoint.S | 103 ++++++++++++++++++ .../AArch64/StandaloneMmCoreEntryPoint.c | 7 +- .../StandaloneMmCoreEntryPoint.inf | 4 + .../StandaloneMmCoreEntryPointRelocatable.inf | 54 +++++++++ StandaloneMmPkg/StandaloneMmPkg.dec | 2 + 8 files changed, 306 insertions(+), 1 deletion(-) create mode 100644 StandaloneMmPkg/Core/Scripts/StMM-PIE.lds create mode 100644 StandaloneMmPkg/Core/StandaloneMmCoreRelocatable.inf create mode 100644 StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArc= h64/ModuleEntryPoint.S create mode 100644 StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/Stan= daloneMmCoreEntryPointRelocatable.inf diff --git a/StandaloneMmPkg/Core/Scripts/StMM-PIE.lds b/StandaloneMmPkg/Co= re/Scripts/StMM-PIE.lds new file mode 100644 index 000000000000..a1d7012c4ca3 --- /dev/null +++ b/StandaloneMmPkg/Core/Scripts/StMM-PIE.lds @@ -0,0 +1,54 @@ +/** @file=0D +=0D + Copyright (c) 2015, Linaro Ltd. All rights reserved.
=0D +=0D + SPDX-License-Identifier: BSD-2-Clause-Patent=0D +=0D +**/=0D +=0D +SECTIONS=0D +{=0D + PROVIDE(__reloc_base =3D .);=0D +=0D + . =3D PECOFF_HEADER_SIZE;=0D + .text : ALIGN(CONSTANT(COMMONPAGESIZE)) {=0D + *(.text.reloc*)=0D + . =3D ALIGN(0x1000);=0D + PROVIDE(__stmm_start =3D .);=0D + *(.text .text*)=0D + . =3D ALIGN(0x20);=0D + PROVIDE(__reloc_start =3D .);=0D + *(.rel .rel.*)=0D + *(.rela .rela.*)=0D + PROVIDE(__reloc_end =3D .);=0D + }=0D + PROVIDE(__ro_start =3D .);=0D + .got : ALIGN(CONSTANT(COMMONPAGESIZE)) {=0D + *(.got .got*)=0D + }=0D + .rodata : ALIGN(CONSTANT(COMMONPAGESIZE)) {=0D + *(.rodata .rodata*)=0D + }=0D + PROVIDE(__ro_end =3D .);=0D + .data : ALIGN(CONSTANT(COMMONPAGESIZE)) {=0D + *(.data .data*)=0D + }=0D + .bss : ALIGN(CONSTANT(COMMONPAGESIZE)) {=0D + *(.bss .bss*)=0D + }=0D + PROVIDE(__stmm_end =3D .);=0D +=0D + .note (INFO) : { *(.note.gnu.build-id) }=0D +=0D + /DISCARD/ : {=0D + *(.note.GNU-stack)=0D + *(.gnu.hash)=0D + *(.gnu_debuglink)=0D + *(.interp)=0D + *(.dynamic)=0D + *(.dynsym)=0D + *(.dynstr)=0D + *(.hash)=0D + *(.comment)=0D + }=0D +}=0D diff --git a/StandaloneMmPkg/Core/StandaloneMmCore.inf b/StandaloneMmPkg/Co= re/StandaloneMmCore.inf index 7d590b49bd3f..fdd4b61b3665 100644 --- a/StandaloneMmPkg/Core/StandaloneMmCore.inf +++ b/StandaloneMmPkg/Core/StandaloneMmCore.inf @@ -74,3 +74,6 @@ gEfiEventLegacyBootGuid=0D gEfiEventExitBootServicesGuid=0D gEfiEventReadyToBootGuid=0D +=0D +[BuildOptions]=0D + GCC:*_*_*_DLINK_FLAGS =3D -Wl,-T,$(MODULE_DIR)/Scripts/StMM-PIE.lds=0D diff --git a/StandaloneMmPkg/Core/StandaloneMmCoreRelocatable.inf b/Standal= oneMmPkg/Core/StandaloneMmCoreRelocatable.inf new file mode 100644 index 000000000000..69049080ef78 --- /dev/null +++ b/StandaloneMmPkg/Core/StandaloneMmCoreRelocatable.inf @@ -0,0 +1,80 @@ +## @file=0D +# This module provide an SMM CIS compliant implementation of SMM Core.=0D +#=0D +# Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.
=0D +# Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.
=0D +# Copyright (c) 2020, Linaro Limited. All rights reserved.
=0D +#=0D +# SPDX-License-Identifier: BSD-2-Clause-Patent=0D +#=0D +##=0D +=0D +[Defines]=0D + INF_VERSION =3D 0x0001001A=0D + BASE_NAME =3D StandaloneMmCore=0D + FILE_GUID =3D 6E14B6FD-3600-4DD6-A17A-206B3B6DCE16= =0D + MODULE_TYPE =3D MM_CORE_STANDALONE=0D + VERSION_STRING =3D 1.0=0D + PI_SPECIFICATION_VERSION =3D 0x00010032=0D + ENTRY_POINT =3D StandaloneMmMain=0D +=0D +# VALID_ARCHITECTURES =3D IA32 X64 AARCH64=0D +=0D +[Sources]=0D + StandaloneMmCore.c=0D + StandaloneMmCore.h=0D + StandaloneMmCorePrivateData.h=0D + Page.c=0D + Pool.c=0D + Handle.c=0D + Locate.c=0D + Notify.c=0D + Dependency.c=0D + Dispatcher.c=0D + Mmi.c=0D + InstallConfigurationTable.c=0D + FwVol.c=0D +=0D +[Packages]=0D + MdePkg/MdePkg.dec=0D + MdeModulePkg/MdeModulePkg.dec=0D + StandaloneMmPkg/StandaloneMmPkg.dec=0D +=0D +[LibraryClasses]=0D + BaseLib=0D + BaseMemoryLib=0D + CacheMaintenanceLib=0D + DebugLib=0D + ExtractGuidedSectionLib=0D + FvLib=0D + HobLib=0D + MemoryAllocationLib=0D + MemLib=0D + PeCoffLib=0D + ReportStatusCodeLib=0D + StandaloneMmCoreEntryPoint=0D +=0D +[Protocols]=0D + gEfiDxeMmReadyToLockProtocolGuid ## UNDEFINED # SmiHandlerRe= gister=0D + gEfiMmReadyToLockProtocolGuid ## PRODUCES=0D + gEfiMmEndOfDxeProtocolGuid ## PRODUCES=0D + gEfiLoadedImageProtocolGuid ## PRODUCES=0D + gEfiMmConfigurationProtocolGuid ## CONSUMES=0D +=0D +[Guids]=0D + gAprioriGuid ## SOMETIMES_CONSUMES ##= File=0D + gEfiEventDxeDispatchGuid ## PRODUCES ##= GUID # SmiHandlerRegister=0D + gEfiEndOfDxeEventGroupGuid ## PRODUCES ##= GUID # SmiHandlerRegister=0D + ## SOMETIMES_CONSUMES ## GUID # Locate protocol=0D + ## SOMETIMES_PRODUCES ## GUID # SmiHandlerRegister=0D + gEdkiiMemoryProfileGuid=0D + gZeroGuid ## SOMETIMES_CONSUMES ##= GUID=0D + gEfiHobListGuid=0D + gMmCoreDataHobGuid=0D + gMmFvDispatchGuid=0D + gEfiEventLegacyBootGuid=0D + gEfiEventExitBootServicesGuid=0D + gEfiEventReadyToBootGuid=0D +=0D +[BuildOptions]=0D + GCC:*_*_*_DLINK_FLAGS =3D -Wl,-Bsymbolic,-pie,-T,$(MODULE_DIR)/Scripts/S= tMM-PIE.lds=0D diff --git a/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/Mod= uleEntryPoint.S b/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch6= 4/ModuleEntryPoint.S new file mode 100644 index 000000000000..90ff4579daa6 --- /dev/null +++ b/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/ModuleEntr= yPoint.S @@ -0,0 +1,103 @@ +//=0D +// Copyright (c) 2011-2013, ARM Limited. All rights reserved.=0D +// Copyright (c) 2015-2020, Linaro Limited. All rights reserved.=0D +//=0D +// SPDX-License-Identifier: BSD-2-Clause-Patent=0D +//=0D +//=0D +=0D +#include =0D +ASM_FUNC(_ModuleEntryPoint)=0D + adr x8, FeaturePcdGet (PcdStMMReloc)=0D + ldrb w9, [x8]=0D + cmp x9, #0=0D + // If PcdStMMReloc is set to TRUE, go ahead and fixup the relocations he= re=0D + beq .Llaunch=0D + adr x8, __reloc_base=0D + adr x9, __reloc_start=0D + adr x10, __reloc_end=0D + bl ASM_PFX(_DoReloc)=0D +.Llaunch:=0D + b ModuleEntryPoint=0D +=0D +.section .text.reloc, "ax"=0D +ASM_PFX(_DoReloc):=0D + mov x20, x0=0D + mov x21, x1=0D + mov x22, x2=0D + mov x23, x3=0D +=0D + // Set all of the memory as r/w=0D + adr x11, __stmm_start=0D + adr x2, __stmm_end=0D + ldr x0, =3D0xC4000065=0D + and x1, x11, #~0x0fff // Align to page=0D + sub x2, x2, x11=0D + add x2, x2, #0xfff=0D + lsr x2, x2, #12 // nr pages=0D + ldr x3, =3D0x5 // Set perms to r/w=0D + svc #0=0D + // Prevent speculative execution beyond svc instruction=0D + dsb nsh=0D + isb=0D +=0D +.Lreloc_loop:=0D + cmp x9, x10=0D + bhs .Lreloc_done=0D + //=0D + // We are built as a ET_DYN PIE executable, so we need to process all=0D + // relative relocations regardless of whether or not we are executing fr= om=0D + // the same offset we were linked at. This is only possible if we are=0D + // running from RAM.=0D + //=0D + // AArch64 uses the ELF64 RELA format, which means each entry in the=0D + // relocation table consists of=0D + //=0D + // UINT64 offset : the relative offset of the value that need= s to=0D + // be relocated=0D + // UINT64 info : relocation type and symbol index (the latt= er is=0D + // not used for R_AARCH64_RELATIVE relocation= s)=0D + // UINT64 addend : value to be added to the value being reloc= ated=0D + //=0D + ldp x11, x12, [x9], #24 // read offset into x11 and info into x12=0D + cmp x12, #0x403 // check info =3D=3D R_AARCH64_RELATIVE?=0D + bne .Lreloc_loop // not a relative relocation? then skip=0D + ldr x12, [x9, #-8] // read addend into x12=0D + add x12, x12, x8 // add reloc base to addend to get relocated= value=0D + str x12, [x11, x8] // write relocated value at offset=0D + b .Lreloc_loop=0D +=0D +.Lreloc_done:=0D + // set memory per section=0D + adr x11, __stmm_start=0D + adr x2, __reloc_end=0D + ldr x0, =3D0xC4000065=0D + and x1, x11, #~0x0fff // Align to page=0D + sub x2, x2, x11=0D + add x2, x2, #0xfff=0D + lsr x2, x2, #12 // nr pages=0D + ldr x3, =3D0x3 // Set perms to r/x=0D + svc #0=0D + // Prevent speculative execution beyond svc instruction=0D + dsb nsh=0D + isb=0D +=0D + adr x11, __ro_start=0D + adr x2, __ro_end=0D + ldr x0, =3D0xC4000065=0D + and x1, x11, #~0x0fff // Align to page=0D + sub x2, x2, x11=0D + add x2, x2, #0xfff=0D + lsr x2, x2, #12 // nr pages=0D + ldr x3, =3D0x1 // Set perms to r/o=0D + svc #0=0D + // Prevent speculative execution beyond svc instruction=0D + dsb nsh=0D + isb=0D +=0D + mov x0, x20=0D + mov x1, x21=0D + mov x2, x22=0D + mov x3, x23=0D +=0D + ret=0D diff --git a/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/Sta= ndaloneMmCoreEntryPoint.c b/StandaloneMmPkg/Library/StandaloneMmCoreEntryPo= int/AArch64/StandaloneMmCoreEntryPoint.c index 20723385113f..57c3162ab5d0 100644 --- a/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/Standalone= MmCoreEntryPoint.c +++ b/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/Standalone= MmCoreEntryPoint.c @@ -22,6 +22,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent #include =0D #include =0D #include =0D +#include =0D #include =0D =0D #include =0D @@ -209,7 +210,7 @@ GetSpmVersion (VOID) **/=0D VOID=0D EFIAPI=0D -_ModuleEntryPoint (=0D +ModuleEntryPoint (=0D IN VOID *SharedBufAddress,=0D IN UINT64 SharedBufSize,=0D IN UINT64 cookie1,=0D @@ -238,6 +239,9 @@ _ModuleEntryPoint ( goto finish;=0D }=0D =0D + if (FeaturePcdGet (PcdStMMReloc)) {=0D + goto skip_remap;=0D + }=0D // Locate PE/COFF File information for the Standalone MM core module=0D Status =3D LocateStandaloneMmCorePeCoffData (=0D (EFI_FIRMWARE_VOLUME_HEADER *) PayloadBootInfo->SpImageBase,= =0D @@ -276,6 +280,7 @@ _ModuleEntryPoint ( goto finish;=0D }=0D =0D +skip_remap:=0D //=0D // Create Hoblist based upon boot information passed by privileged softw= are=0D //=0D diff --git a/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneM= mCoreEntryPoint.inf b/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/St= andaloneMmCoreEntryPoint.inf index 891c292e92f8..6659219404a5 100644 --- a/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEn= tryPoint.inf +++ b/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEn= tryPoint.inf @@ -25,6 +25,7 @@ AArch64/StandaloneMmCoreEntryPoint.c=0D AArch64/SetPermissions.c=0D AArch64/CreateHobList.c=0D + AArch64/ModuleEntryPoint.S=0D =0D [Packages]=0D MdePkg/MdePkg.dec=0D @@ -48,3 +49,6 @@ gEfiMmPeiMmramMemoryReserveGuid=0D gEfiStandaloneMmNonSecureBufferGuid=0D gEfiArmTfCpuDriverEpDescriptorGuid=0D +=0D +[FeaturePcd]=0D + gStandaloneMmPkgTokenSpaceGuid.PcdStMMReloc|FALSE=0D diff --git a/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneM= mCoreEntryPointRelocatable.inf b/StandaloneMmPkg/Library/StandaloneMmCoreEn= tryPoint/StandaloneMmCoreEntryPointRelocatable.inf new file mode 100644 index 000000000000..10cdae1b4018 --- /dev/null +++ b/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEn= tryPointRelocatable.inf @@ -0,0 +1,54 @@ +## @file=0D +# Module entry point library for DXE core.=0D +#=0D +# Copyright (c) 2020, ARM Ltd. All rights reserved.
=0D +#=0D +# SPDX-License-Identifier: BSD-2-Clause-Patent=0D +#=0D +#=0D +##=0D +=0D +[Defines]=0D + INF_VERSION =3D 0x0001001A=0D + BASE_NAME =3D StandaloneMmCoreEntryPoint=0D + FILE_GUID =3D C97AC593-109A-4C63-905C-675FDE2689E8= =0D + MODULE_TYPE =3D MM_CORE_STANDALONE=0D + VERSION_STRING =3D 1.0=0D + PI_SPECIFICATION_VERSION =3D 0x00010032=0D + LIBRARY_CLASS =3D StandaloneMmCoreEntryPoint|MM_CORE_ST= ANDALONE=0D +=0D +#=0D +# VALID_ARCHITECTURES =3D IA32 X64 IPF EBC (EBC is for build on= ly)=0D +#=0D +=0D +[Sources.AARCH64]=0D + AArch64/StandaloneMmCoreEntryPoint.c=0D + AArch64/SetPermissions.c=0D + AArch64/CreateHobList.c=0D + AArch64/ModuleEntryPoint.S=0D +=0D +[Packages]=0D + MdePkg/MdePkg.dec=0D + MdeModulePkg/MdeModulePkg.dec=0D + StandaloneMmPkg/StandaloneMmPkg.dec=0D +=0D +[Packages.AARCH64]=0D + ArmPkg/ArmPkg.dec=0D + ArmPlatformPkg/ArmPlatformPkg.dec=0D +=0D +[LibraryClasses]=0D + BaseLib=0D + DebugLib=0D +=0D +[LibraryClasses.AARCH64]=0D + StandaloneMmMmuLib=0D + ArmSvcLib=0D +=0D +[Guids]=0D + gMpInformationHobGuid=0D + gEfiMmPeiMmramMemoryReserveGuid=0D + gEfiStandaloneMmNonSecureBufferGuid=0D + gEfiArmTfCpuDriverEpDescriptorGuid=0D +=0D +[FeaturePcd]=0D + gStandaloneMmPkgTokenSpaceGuid.PcdStMMReloc|TRUE=0D diff --git a/StandaloneMmPkg/StandaloneMmPkg.dec b/StandaloneMmPkg/Standalo= neMmPkg.dec index 82cb62568b53..cc572321a5b6 100644 --- a/StandaloneMmPkg/StandaloneMmPkg.dec +++ b/StandaloneMmPkg/StandaloneMmPkg.dec @@ -33,3 +33,5 @@ gEfiStandaloneMmNonSecureBufferGuid =3D { 0xf00497e3, 0xbfa2, 0x41a= 1, { 0x9d, 0x29, 0x54, 0xc2, 0xe9, 0x37, 0x21, 0xc5 }}=0D gEfiArmTfCpuDriverEpDescriptorGuid =3D { 0x6ecbd5a1, 0xc0f8, 0x470= 2, { 0x83, 0x01, 0x4f, 0xc2, 0xc5, 0x47, 0x0a, 0x51 }}=0D =0D +[PcdsFeatureFlag]=0D + gStandaloneMmPkgTokenSpaceGuid.PcdStMMReloc|FALSE|BOOLEAN|0x00000001=0D --=20 2.27.0