Reviewed-by: Star Zeng <[email protected]> -----Original Message----- From: Ni, Ray Sent: Thursday, November 21, 2019 1:46 PM To: Jeff Brasen <[email protected]>; [email protected]; [email protected] Cc: Gao, Liming <[email protected]>; Kinney, Michael D <[email protected]>; Wu, Hao A <[email protected]>; Gao, Zhichao <[email protected]>; Zeng, Star <[email protected]> Subject: RE: [PATCH 2/3] MdePkg/MdeModule: Add support for RuntimeServicesSupported variable
Reviewed-by: Ray Ni <[email protected]> + VarCheck expert Star Zeng. > -----Original Message----- > From: Jeff Brasen <[email protected]> > Sent: Saturday, November 16, 2019 1:43 AM > To: [email protected]; [email protected] > Cc: Jeff Brasen <[email protected]>; Gao, Liming <[email protected]>; > Kinney, Michael D <[email protected]>; Wu, Hao A > <[email protected]>; Ni, Ray <[email protected]>; Gao, Zhichao > <[email protected]> > Subject: [PATCH 2/3] MdePkg/MdeModule: Add support for > RuntimeServicesSupported variable > > Add support for new global variable defined in the UEFI 2.8 specification. > This > provides a bitmask of which calls are implemented by the firmware during > runtime services. > > Signed-off-by: Jeff Brasen <[email protected]> > --- > .../Library/VarCheckUefiLib/VarCheckUefiLibNullClass.c | 11 > +++++++++++ > MdePkg/Include/Guid/GlobalVariable.h | 7 +++++++ > 2 files changed, 18 insertions(+) > > diff --git > a/MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLibNullClass.c > b/MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLibNullClass.c > index e3bf04a..4264892 100644 > --- a/MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLibNullClass.c > +++ b/MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLibNullClass.c > @@ -553,6 +553,17 @@ UEFI_DEFINED_VARIABLE_ENTRY > mGlobalVariableList[] = { > }, > NULL > }, > + { > + EFI_RUNTIME_SERVICES_SUPPORTED_VARIABLE_NAME, > + { > + VAR_CHECK_VARIABLE_PROPERTY_REVISION, > + VAR_CHECK_VARIABLE_PROPERTY_READ_ONLY, > + VARIABLE_ATTRIBUTE_BS_RT, > + sizeof (UINT16), > + sizeof (UINT16) > + }, > + NULL > + }, > }; > > UEFI_DEFINED_VARIABLE_ENTRY mGlobalVariableList2[] = { diff --git > a/MdePkg/Include/Guid/GlobalVariable.h > b/MdePkg/Include/Guid/GlobalVariable.h > index 7abc103..06a8a12 100644 > --- a/MdePkg/Include/Guid/GlobalVariable.h > +++ b/MdePkg/Include/Guid/GlobalVariable.h > @@ -182,5 +182,12 @@ extern EFI_GUID gEfiGlobalVariableGuid; /// Its > attribute is BS+RT. > /// > #define EFI_VENDOR_KEYS_VARIABLE_NAME L"VendorKeys" > +/// > +/// Bitmask of which calls are implemented by the firmware during runtime > services. > +/// RT access is required only if GetVariable() is implemented by runtime > services. > +/// Should be treated as read-only. > +/// Its attribute is BS+RT. > +/// > +#define EFI_RUNTIME_SERVICES_SUPPORTED_VARIABLE_NAME > L"RuntimeServicesSupported" > > #endif > -- > 2.7.4 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#50997): https://edk2.groups.io/g/devel/message/50997 Mute This Topic: https://groups.io/mt/59298932/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
