From nobody Mon Feb 9 22:39:14 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+43850+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+43850+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1563349053; cv=none; d=zoho.com; s=zohoarc; b=WT4sd7WV1bw9PcaWntwa7Q17W67lqN6XiV7Avil8vGLvedxkNMPtg1SaSvgKqTjuHyFEQGvFMQsSlvmpNztS6M+LQTFREA7OfPTqz/+Oh54EDzvS8O5nrnjbNb1RLmjw2gI+AvrmN1ES0Uk5rF3LDXFkvhMYuFwRaLT+iC32RKA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1563349053; 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=BD7jIIZqqUea8LEm60CnaWRUortpwHJeUgUsgAY+jVY=; b=GV3YCG267P3aAae4obloqSZ6uGisI8OeMRFYQPEottlR66oVJ2TEwzYNiqApSdoZMLCwlttcetoZuE47th9Zt4ne73R8NoosjNaVHxcR9AZaW/65DeVUR1qxZhv5pX1EyKISNtpSN4CZeVeP10e0C2z3ZKVuuLyxNiKMvfMpZ1E= 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+43850+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 1563349053268985.9087177296442; Wed, 17 Jul 2019 00:37:33 -0700 (PDT) Return-Path: X-Received: from mga14.intel.com (mga14.intel.com []) by groups.io with SMTP; Wed, 17 Jul 2019 00:37:32 -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 fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Jul 2019 00:37:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,273,1559545200"; d="scan'208";a="187506302" X-Received: from fieedk001.ccr.corp.intel.com ([10.239.33.119]) by fmsmga001.fm.intel.com with ESMTP; 17 Jul 2019 00:37:30 -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 2/3] MdePkg: Add new pcd PcdRuntimeServicesSupport Date: Wed, 17 Jul 2019 15:37:24 +0800 Message-Id: <20190717073725.30304-3-zhichao.gao@intel.com> In-Reply-To: <20190717073725.30304-1-zhichao.gao@intel.com> References: <20190717073725.30304-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=1563349052; bh=CLoUH0yjHBqX+timT+tWl0GonZ63fYItNJWLGjU/0SI=; h=Cc:Date:From:Reply-To:Subject:To; b=QeVydj8VB3mlTEOa7jL6jq66CESFkrWe02sn0sgjNkslf4dEaQ4sw76imlvNnBM8Tm7 VYCQAP2uXGvIliT4i1zaP6EhdetEqY3an/Hv7WaAnbqpMOVGpuT3fB2dp6Qh3n0iyMKmJ 1JJOAopU1nH8mhpDHcfftTAUWkPKYh9G6pE= 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 6c563375ee..5e9205dc10 100644 --- a/MdePkg/MdePkg.dec +++ b/MdePkg/MdePkg.dec @@ -2076,6 +2076,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 serv= ices." + = "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 (#43850): https://edk2.groups.io/g/devel/message/43850 Mute This Topic: https://groups.io/mt/32500927/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-