From: "Gao, Zhichao" <zhichao.gao@intel.com>
To: devel@edk2.groups.io
Cc: Michael D Kinney <michael.d.kinney@intel.com>,
Liming Gao <liming.gao@intel.com>,
Sean Brogan <sean.brogan@microsoft.com>,
Michael Turner <Michael.Turner@microsoft.com>,
Bret Barkelew <Bret.Barkelew@microsoft.com>
Subject: [PATCH V2 2/4] MdePkg: Add new pcd PcdRuntimeServicesSupport
Date: Fri, 19 Jul 2019 16:09:19 +0800 [thread overview]
Message-ID: <20190719080921.17516-3-zhichao.gao@intel.com> (raw)
In-Reply-To: <20190719080921.17516-1-zhichao.gao@intel.com>
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1907
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 <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Sean Brogan <sean.brogan@microsoft.com>
Cc: Michael Turner <Michael.Turner@microsoft.com>
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
Signed-off-by: Zhichao Gao <zhichao.gao@intel.com>
---
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
+ ## Indicates the supported runtime services after exit boot services.
+ # Uefi Spec 2.8, Section 8.1.1, RuntimeServicesSupported variable realted definitions.<BR><BR>
+ # 0x0001 (EFI_RT_SUPPORTED_GET_TIME)<BR>
+ # 0x0002 (EFI_RT_SUPPORTED_SET_TIME)<BR>
+ # 0x0004 (EFI_RT_SUPPORTED_GET_WAKEUP_TIME)<BR>
+ # 0x0008 (EFI_RT_SUPPORTED_SET_WAKEUP_TIME)<BR>
+ # 0x0010 (EFI_RT_SUPPORTED_GET_VARIABLE)<BR>
+ # 0x0020 (EFI_RT_SUPPORTED_GET_NEXT_VARIABLE_NAME)<BR>
+ # 0x0040 (EFI_RT_SUPPORTED_SET_VARIABLE)<BR>
+ # 0x0080 (EFI_RT_SUPPORTED_SET_VIRTUAL_ADDRESS_MAP)<BR>
+ # 0x0100 (EFI_RT_SUPPORTED_CONVERT_POINTER)<BR>
+ # 0x0200 (EFI_RT_SUPPORTED_GET_NEXT_HIGH_MONOTONIC_COUNT)<BR>
+ # 0x0400 (EFI_RT_SUPPORTED_RESET_SYSTEM)<BR>
+ # 0x0800 (EFI_RT_SUPPORTED_UPDATE_CAPSULE)<BR>
+ # 0x1000 (EFI_RT_SUPPORTED_QUERY_CAPSULE_CAPABILITIES)<BR>
+ # 0x2000 (EFI_RT_SUPPORTED_QUERY_VARIABLE_INFO)
+ # @Prompt Runtime Services support.
+ gEfiMdePkgTokenSpaceGuid.PcdRuntimeServicesSupport|0x3FFF|UINT16|0x30001019
+
[PcdsFixedAtBuild,PcdsPatchableInModule]
## Indicates the maximum length of unicode string used in the following
# BaseLib functions: StrLen(), StrSize(), StrCmp(), StrnCmp(), StrCpy(), StrnCpy()<BR><BR>
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).<BR>\n"
"Other - reserved"
+#string STR_gEfiMdePkgTokenSpaceGuid_PcdRuntimeServicesSupport_PROMPT #language en-US "Runtime Services support."
+
+#string STR_gEfiMdePkgTokenSpaceGuid_PcdRuntimeServicesSupport_HELP #language en-US "Indicates the supported runtime services after exit boot services."
+ "Uefi Spec 2.8, Section 8.1.1, RuntimeServicesSupported variable realted definitions.<BR><BR>"
+ " 0x0001 (EFI_RT_SUPPORTED_GET_TIME)<BR>"
+ " 0x0002 (EFI_RT_SUPPORTED_SET_TIME)<BR>"
+ " 0x0004 (EFI_RT_SUPPORTED_GET_WAKEUP_TIME)<BR>"
+ " 0x0008 (EFI_RT_SUPPORTED_SET_WAKEUP_TIME)<BR>"
+ " 0x0010 (EFI_RT_SUPPORTED_GET_VARIABLE)<BR>"
+ " 0x0020 (EFI_RT_SUPPORTED_GET_NEXT_VARIABLE_NAME)<BR>"
+ " 0x0040 (EFI_RT_SUPPORTED_SET_VARIABLE)<BR>"
+ " 0x0080 (EFI_RT_SUPPORTED_SET_VIRTUAL_ADDRESS_MAP)<BR>"
+ " 0x0100 (EFI_RT_SUPPORTED_CONVERT_POINTER)<BR>"
+ " 0x0200 (EFI_RT_SUPPORTED_GET_NEXT_HIGH_MONOTONIC_COUNT)<BR>"
+ " 0x0400 (EFI_RT_SUPPORTED_RESET_SYSTEM)<BR>"
+ " 0x0800 (EFI_RT_SUPPORTED_UPDATE_CAPSULE)<BR>"
+ " 0x1000 (EFI_RT_SUPPORTED_QUERY_CAPSULE_CAPABILITIES)<BR>"
+ " 0x2000 (EFI_RT_SUPPORTED_QUERY_VARIABLE_INFO)"
+
#string STR_gEfiMdePkgTokenSpaceGuid_PcdMaximumAsciiStringLength_PROMPT #language en-US "Maximum Length of Ascii String"
#string STR_gEfiMdePkgTokenSpaceGuid_PcdMaximumAsciiStringLength_HELP #language en-US "Sets the maximum number of ASCII characters used for string functions. This affects the following BaseLib functions: AsciiStrLen(), AsciiStrSize(), AsciiStrCmp(), AsciiStrnCmp(), AsciiStrCpy(), AsciiStrnCpy(). <BR><BR>\n"
--
2.21.0.windows.1
next prev parent reply other threads:[~2019-07-19 8:09 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-19 8:09 [PATCH V2 0/4] Add a pcd PcdBootManagerInBootOrder to control whether BootManager is in BootOrder Gao, Zhichao
2019-07-19 8:09 ` [PATCH V2 1/4] MdePkg/UefiSpec.h: Add define of runtime services support Gao, Zhichao
2019-07-19 8:09 ` Gao, Zhichao [this message]
2019-07-19 8:09 ` [PATCH V2 3/4] MdeModulePkg/RuntimeDxe: Set RuntimeServicesSupport base on Pcd Gao, Zhichao
2019-07-19 16:01 ` [edk2-devel] " Michael D Kinney
2019-07-19 8:09 ` [PATCH V2 4/4] MdeModulePkg/CapsuleRuntimeDxe: Implement RuntimeServicesSupported Gao, Zhichao
2019-07-19 16:08 ` [edk2-devel] " Michael D Kinney
2019-07-22 2:53 ` Gao, Zhichao
2019-07-22 3:39 ` Michael D Kinney
2019-07-19 14:15 ` [PATCH V2 0/4] Add a pcd PcdBootManagerInBootOrder to control whether BootManager is in BootOrder Laszlo Ersek
2019-07-22 3:17 ` [edk2-devel] " Gao, Zhichao
2019-07-22 17:28 ` Laszlo Ersek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190719080921.17516-3-zhichao.gao@intel.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox