From nobody Tue Feb 10 15:46:49 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+44030+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+44030+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1563523794; cv=none; d=zoho.com; s=zohoarc; b=Swapzx9p4s5PxtWOqARf+mnedagEFdrD0aQLfJbJYxGZp/RTvtbSBydvHg5C+qA+v9Oy7lmLoY7yd2atud0y5TGmu0xjEBUuZOGyyfOCnIFfpu/JPcEXRiDoa67cxLIV89oieIzYUSaHGCXBqUQ3crTCNk2IJFEmpzuW3FNHG4U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1563523794; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To:ARC-Authentication-Results; bh=YvR/iiaFPIn3VTMs03WrjEd/zuzKFsFNgswO3Uk6y8U=; b=FV7LJzAxtTXb9Ve7JWW5QqRzO69RlxgPRsXUhG1IUKs0p9KjEsz3ktmRwttiUySs3oSEP6w30SjX3YbuTtT1vG1PER5sVOJd3PwZHbP6KmvMjZZqHXJpLHfqeOLr9b4Z9ZQwBgG5hfgSS7xDGmDnYDWjOaa4EZSXSNFtdA9ATdo= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+44030+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1563523794836266.9680440199253; Fri, 19 Jul 2019 01:09:54 -0700 (PDT) Return-Path: X-Received: from mga04.intel.com (mga04.intel.com []) by groups.io with SMTP; Fri, 19 Jul 2019 01:09:54 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Jul 2019 01:09:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,281,1559545200"; d="scan'208";a="187951050" X-Received: from fieedk001.ccr.corp.intel.com ([10.239.33.119]) by fmsmga001.fm.intel.com with ESMTP; 19 Jul 2019 01:09:52 -0700 From: "Gao, Zhichao" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao , Sean Brogan , Michael Turner , Bret Barkelew Subject: [edk2-devel] [PATCH V2 2/4] MdePkg: Add new pcd PcdRuntimeServicesSupport Date: Fri, 19 Jul 2019 16:09:19 +0800 Message-Id: <20190719080921.17516-3-zhichao.gao@intel.com> In-Reply-To: <20190719080921.17516-1-zhichao.gao@intel.com> References: <20190719080921.17516-1-zhichao.gao@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,zhichao.gao@intel.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1563523794; bh=WltPGVlid/reBjZZPT7LIdJ/8ycKJbbhO29N0TRAHtQ=; h=Cc:Date:From:Reply-To:Subject:To; b=rCJi9p/dBRJIn7KSkai+aQ3U1qvakY46G96Yu7YACuuTg9WWfQ7pWLKPzf5j3+kjp7S RGXkyfzLCQnUIsrLDDudivMjUSAwyqr+rxi3z3OHod3AqK0sKm6d0nKXKxLOYpHXDUaq1 D9XebKkSvinVDRO+zSuBAgNVdjr2eRoUcxE= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D1907 Add pcd PcdRuntimeServicesSupport to control whether runtime services is supported at runtime phase. It is a UINT16 type bitmask value. Refer to Uefi Spec 2.8, Section 8.1.1. Cc: Michael D Kinney Cc: Liming Gao Cc: Sean Brogan Cc: Michael Turner Cc: Bret Barkelew Signed-off-by: Zhichao Gao --- MdePkg/MdePkg.dec | 19 +++++++++++++++++++ MdePkg/MdePkg.uni | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec index b382efd578..c66c88970e 100644 --- a/MdePkg/MdePkg.dec +++ b/MdePkg/MdePkg.dec @@ -2079,6 +2079,25 @@ # @Prompt Speculation Barrier Type. gEfiMdePkgTokenSpaceGuid.PcdSpeculationBarrierType|0x01|UINT8|0x30001018 =20 + ## Indicates the supported runtime services after exit boot services. + # Uefi Spec 2.8, Section 8.1.1, RuntimeServicesSupported variable realt= ed definitions.

+ # 0x0001 (EFI_RT_SUPPORTED_GET_TIME)
+ # 0x0002 (EFI_RT_SUPPORTED_SET_TIME)
+ # 0x0004 (EFI_RT_SUPPORTED_GET_WAKEUP_TIME)
+ # 0x0008 (EFI_RT_SUPPORTED_SET_WAKEUP_TIME)
+ # 0x0010 (EFI_RT_SUPPORTED_GET_VARIABLE)
+ # 0x0020 (EFI_RT_SUPPORTED_GET_NEXT_VARIABLE_NAME)
+ # 0x0040 (EFI_RT_SUPPORTED_SET_VARIABLE)
+ # 0x0080 (EFI_RT_SUPPORTED_SET_VIRTUAL_ADDRESS_MAP)
+ # 0x0100 (EFI_RT_SUPPORTED_CONVERT_POINTER)
+ # 0x0200 (EFI_RT_SUPPORTED_GET_NEXT_HIGH_MONOTONIC_COUNT)
+ # 0x0400 (EFI_RT_SUPPORTED_RESET_SYSTEM)
+ # 0x0800 (EFI_RT_SUPPORTED_UPDATE_CAPSULE)
+ # 0x1000 (EFI_RT_SUPPORTED_QUERY_CAPSULE_CAPABILITIES)
+ # 0x2000 (EFI_RT_SUPPORTED_QUERY_VARIABLE_INFO) + # @Prompt Runtime Services support. + gEfiMdePkgTokenSpaceGuid.PcdRuntimeServicesSupport|0x3FFF|UINT16|0x30001= 019 + [PcdsFixedAtBuild,PcdsPatchableInModule] ## Indicates the maximum length of unicode string used in the following # BaseLib functions: StrLen(), StrSize(), StrCmp(), StrnCmp(), StrCpy()= , StrnCpy()

diff --git a/MdePkg/MdePkg.uni b/MdePkg/MdePkg.uni index 5c1fa24065..09e0cf22f1 100644 --- a/MdePkg/MdePkg.uni +++ b/MdePkg/MdePkg.uni @@ -157,6 +157,25 @@ = "0x02 - CPUID (IA32/X64).
\n" = "Other - reserved" =20 +#string STR_gEfiMdePkgTokenSpaceGuid_PcdRuntimeServicesSupport_PROMPT #la= nguage en-US "Runtime Services support." + +#string STR_gEfiMdePkgTokenSpaceGuid_PcdRuntimeServicesSupport_HELP #lang= uage en-US "Indicates the supported runtime services after exit boot servic= es." + = "Uefi Spec 2.8, Section 8.1.1, RuntimeServicesSupported variable= realted definitions.

" + = " 0x0001 (EFI_RT_SUPPORTED_GET_TIME)
" + = " 0x0002 (EFI_RT_SUPPORTED_SET_TIME)
" + = " 0x0004 (EFI_RT_SUPPORTED_GET_WAKEUP_TIME)
" + = " 0x0008 (EFI_RT_SUPPORTED_SET_WAKEUP_TIME)
" + = " 0x0010 (EFI_RT_SUPPORTED_GET_VARIABLE)
" + = " 0x0020 (EFI_RT_SUPPORTED_GET_NEXT_VARIABLE_NAME)
" + = " 0x0040 (EFI_RT_SUPPORTED_SET_VARIABLE)
" + = " 0x0080 (EFI_RT_SUPPORTED_SET_VIRTUAL_ADDRESS_MAP)
" + = " 0x0100 (EFI_RT_SUPPORTED_CONVERT_POINTER)
" + = " 0x0200 (EFI_RT_SUPPORTED_GET_NEXT_HIGH_MONOTONIC_COUNT)
" + = " 0x0400 (EFI_RT_SUPPORTED_RESET_SYSTEM)
" + = " 0x0800 (EFI_RT_SUPPORTED_UPDATE_CAPSULE)
" + = " 0x1000 (EFI_RT_SUPPORTED_QUERY_CAPSULE_CAPABILITIES)
" + = " 0x2000 (EFI_RT_SUPPORTED_QUERY_VARIABLE_INFO)" + #string STR_gEfiMdePkgTokenSpaceGuid_PcdMaximumAsciiStringLength_PROMPT #= language en-US "Maximum Length of Ascii String" =20 #string STR_gEfiMdePkgTokenSpaceGuid_PcdMaximumAsciiStringLength_HELP #la= nguage en-US "Sets the maximum number of ASCII characters used for string f= unctions. This affects the following BaseLib functions: AsciiStrLen(), Asc= iiStrSize(), AsciiStrCmp(), AsciiStrnCmp(), AsciiStrCpy(), AsciiStrnCpy(). =

\n" --=20 2.21.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#44030): https://edk2.groups.io/g/devel/message/44030 Mute This Topic: https://groups.io/mt/32524670/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-