[edk2] [PATCH 02/13] MdePkg: Add a PCD that indicates presence of Standalone MM mode

Ard Biesheuvel ard.biesheuvel at linaro.org
Fri Dec 21 01:13:20 PST 2018


On Fri, 14 Dec 2018 at 13:13, Jagadeesh Ujja <jagadeesh.ujja at arm.com> wrote:
>
> Add a flag to indicate the presence of Standalone MM mode. For existing
> library and/or drivers that can be refactored to be used as a Standalone
> MM component, this flag can be used to choose the portions of the code
> that gets executed in Standalone MM.
>
> Contributed-under: TianoCore Contribution Agreement 1.1
> Signed-off-by: Jagadeesh Ujja <jagadeesh.ujja at arm.com>
> ---
>  MdePkg/MdePkg.dec | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec
> index 712bd46..af694fc 100644
> --- a/MdePkg/MdePkg.dec
> +++ b/MdePkg/MdePkg.dec
> @@ -2073,6 +2073,11 @@
>    # @Prompt Fixed Debug Message Print Level.
>    gEfiMdePkgTokenSpaceGuid.PcdFixedDebugPrintErrorLevel|0xFFFFFFFF|UINT32|0x30001016
>
> +  ## This flag indicates Standalone MM execution mode is enabled
> +  #  TRUE  - Standalone MM execution mode is enabled
> +  #  FALSE - Standalone MM execution mode is not enabled
> +  gEfiMdePkgTokenSpaceGuid.PcdStandaloneMmCodeEnabled|FALSE|BOOLEAN|0x30001017
> +

Shouldn't this be implied by the chosen library resolution?

>  [PcdsFixedAtBuild,PcdsPatchableInModule]
>    ## Indicates the maximum length of unicode string used in the following
>    #  BaseLib functions: StrLen(), StrSize(), StrCmp(), StrnCmp(), StrCpy(), StrnCpy()<BR><BR>
> --
> 2.7.4
>


More information about the edk2-devel mailing list