REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1979
V1: UEFI spec 2.8 introduce a new variable L"RuntimeServicesSupported". If some runtime sevices is not supported at runtime phase, the variable should present at boot services. It is a bitmask value, the bit value of zero indicate the related runtime services is not supported at runtime phase. Add the difinition and use it to control Capsule runtime services. V2: Adjust the indent of uni file. Move the set variable function from CapsuleRuntimeDxe to RuntimeDxe. Add 'EFIAPI' to the event function "UpdateRuntimeServicesSupported", lacking of it would cause the GCC build failure. Cc: Michael D Kinney <michael.d.kin...@intel.com> Cc: Liming Gao <liming....@intel.com> Cc: Jian J Wang <jian.j.w...@intel.com> Cc: Hao A Wu <hao.a...@intel.com> Cc: Ray Ni <ray...@intel.com> Cc: Star Zeng <star.z...@intel.com> Cc: Sean Brogan <sean.bro...@microsoft.com> Cc: Michael Turner <michael.tur...@microsoft.com> Cc: Bret Barkelew <bret.barke...@microsoft.com> Cc: Laszlo Ersek <ler...@redhat.com> Signed-off-by: Zhichao Gao <zhichao....@intel.com> Zhichao Gao (4): MdePkg/UefiSpec.h: Add define of runtime services support MdePkg: Add new pcd PcdRuntimeServicesSupport MdeModulePkg/RuntimeDxe: Set RuntimeServicesSupport base on Pcd MdeModulePkg/CapsuleRuntimeDxe: Implement RuntimeServicesSupported MdeModulePkg/Core/RuntimeDxe/Runtime.c | 65 +++++++++++++++++- MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf | 8 ++- .../CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf | 2 + .../CapsuleRuntimeDxe/CapsuleService.c | 68 +++++++++++++++++++ MdePkg/Include/Uefi/UefiSpec.h | 15 ++++ MdePkg/MdePkg.dec | 19 ++++++ MdePkg/MdePkg.uni | 19 ++++++ 7 files changed, 194 insertions(+), 2 deletions(-) -- 2.21.0.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#44028): https://edk2.groups.io/g/devel/message/44028 Mute This Topic: https://groups.io/mt/32524668/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-