From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from hqemgate14.nvidia.com (hqemgate14.nvidia.com [216.228.121.143]) by mx.groups.io with SMTP id smtpd.web12.421.1573839770579708229 for ; Fri, 15 Nov 2019 09:42:50 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@nvidia.com header.s=n1 header.b=NNV/HIes; spf=pass (domain: nvidia.com, ip: 216.228.121.143, mailfrom: jbrasen@nvidia.com) Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Fri, 15 Nov 2019 09:42:52 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Fri, 15 Nov 2019 09:42:50 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Fri, 15 Nov 2019 09:42:50 -0800 Received: from HQMAIL105.nvidia.com (172.20.187.12) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 15 Nov 2019 17:42:49 +0000 Received: from rnnvemgw01.nvidia.com (10.128.109.123) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Fri, 15 Nov 2019 17:42:49 +0000 Received: from jbrasen-ux.nvidia.com (Not Verified[10.28.48.132]) by rnnvemgw01.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Fri, 15 Nov 2019 09:42:49 -0800 From: "Jeff Brasen" To: , CC: Jeff Brasen , , , , , Subject: [PATCH 2/3] MdePkg/MdeModule: Add support for RuntimeServicesSupported variable Date: Fri, 15 Nov 2019 10:42:36 -0700 Message-ID: <72ce5d663b7ec7e98eeaf7f26b00803a0b694d14.1573839532.git.jbrasen@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: X-NVConfidentiality: public Return-Path: jbrasen@nvidia.com MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1573839772; bh=b6+3dd9irxlBxO/u7nKuSIo4FcnhJWnuE9w7Ep5I1Vc=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:X-NVConfidentiality:MIME-Version: Content-Type; b=NNV/HIes4klKAzwrdxde+RoL4DitVgvAofvk6cRn/nDPNEs2QB3lGGOsmTEzdBhu4 OtOM3QXpfT8+Zw2o8P89Hvs6bYTII0u2FMWTJDvueceuyoch+IWy4u/jkdYf3IQPVo GlSXS5vDCI7lhbGGoiyYImAjDGsm9HFg1hRaql9EU9GttOo+JQ4QNYXZIeidFLpqKx 8nJTvaIGj44xVHtm7ClBMB+9MzV7ZL4Cfl37CifyqHzR/pwmGBS6t7g4OK5nDVtxqs uG4DIPFrnYCAq32i20TBThXu8CoJYaXVYJcmtEULQ17Twbqx06qTd8vqqsWF3+d6UT 2o0N53f1B0f+A== Content-Type: text/plain 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 --- .../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