From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4864:20::144; helo=mail-it1-x144.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-it1-x144.google.com (mail-it1-x144.google.com [IPv6:2607:f8b0:4864:20::144]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 5FA0D2119307C for ; Fri, 21 Dec 2018 01:13:34 -0800 (PST) Received: by mail-it1-x144.google.com with SMTP id i145so5873217ita.4 for ; Fri, 21 Dec 2018 01:13:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=e9f2GlobkKy8aFIztNJeeoOdgtzOhV4JZKoatHO7+1s=; b=WA8y9Vjf2e6ML4t/k8dkS0H+mB1AuouighUQNF5wrHT7PBmdtmHsJRLzM368Ieak18 Q4QSbxHh9znDnOqWk1vdtsFg3C5/JZlx0kwWstSoXhv08gbuePsoXqoWx6Q+77RJU8KE bQCyA/NTYxugJhbTHIU9aAjupQ6SDVA/GYEdY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=e9f2GlobkKy8aFIztNJeeoOdgtzOhV4JZKoatHO7+1s=; b=tgn1GqfRSCKNJXD+YwwVLI3y5PH2CuXv7Gq3BjJEAGlQ1mjpzFzbMe1PWZgK8NCEk8 MLvKz2q/M4LjEYqfH17QvrcQeReRbXpVT5NqcrHicyfqOFpL30GHer7tb+aFrqgavtVh /q063buJUEwndqeH1ob6h7KJOpn+2YwM1/X2ban0W3XQqN2BJZ0oY6/lQsdIeLbptuc4 Q3ikxSnHV1IQq9DxYFBfJ6J44DvAKB66PsgCmW3kNvNL4BD0NRuw/VP5ZeONysuCbCwR Tu7jaPr5iaFozLfYur/3T71C0/i9clz96Yn6vlU1fmrVN3H0AEbEXuIOai4mJjxvweoJ AYlQ== X-Gm-Message-State: AA+aEWZYvZgFR6vLT1OX69Mi2HiM9SR/33kTaeQDY2CaVGMr5zkPvUhj VBLmrOrvJAgtW0Yb+V1f4B8vqZEe7PJxWSicZARplA== X-Google-Smtp-Source: AFSGD/X3/Hs4dYTftKT4uXhS84p8i3jmSEAnkCmAcZ110pXPx+Qmd2U8+N1apRPLtPfeq9km0e6lLdHfXmDCY86eqdY= X-Received: by 2002:a02:183:: with SMTP id 3mr1028211jak.130.1545383613585; Fri, 21 Dec 2018 01:13:33 -0800 (PST) MIME-Version: 1.0 References: <1544789607-11316-1-git-send-email-jagadeesh.ujja@arm.com> <1544789607-11316-3-git-send-email-jagadeesh.ujja@arm.com> In-Reply-To: <1544789607-11316-3-git-send-email-jagadeesh.ujja@arm.com> From: Ard Biesheuvel Date: Fri, 21 Dec 2018 10:13:20 +0100 Message-ID: To: Jagadeesh Ujja Cc: "edk2-devel@lists.01.org" , "Gao, Liming" , "Zhang, Chao B" , Leif Lindholm Subject: Re: [PATCH 02/13] MdePkg: Add a PCD that indicates presence of Standalone MM mode X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Dec 2018 09:13:34 -0000 Content-Type: text/plain; charset="UTF-8" On Fri, 14 Dec 2018 at 13:13, Jagadeesh Ujja 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 > --- > 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()

> -- > 2.7.4 >