From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id AEB9AD8118F for ; Fri, 17 May 2024 12:07:33 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=+gnJDCdU3UA9Iu/rRwI+ve3l2zOTWYkzaqw2/UWtDy8=; c=relaxed/simple; d=groups.io; h=From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:msip_labels:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type; s=20240206; t=1715947652; v=1; b=jzMckx8Em6U3xSOamF5KluBFyCfGJJFVruC1fIm4U3wKX39oPb+uvrMjO9MNe8cp7sjziBX1 xkxjuOLLGj2fxikfQOEggFO+BaM5wNAyWWrLC6l7Q/YJQPOVGr17+8cxWE9cCgJIywYDSJLWzQr VcC9SMihb8m/kmZjFy+CWGSoTZfv3BBsn7r8ciPMiZw+pyxrp6paPQoII22O8gO5HEgWpJoPEWv muuHdw0KxAGZLlyhAD1rkDUDX0hIzCpCn/Lxih+bLmtcn8a2cPJ7BCkD+Is3iyd6dHlisU7o0wz +VTMSA57OW8EWIg2Ixby5822r67w75imtUKic+7tOeBKg== X-Received: by 127.0.0.2 with SMTP id 62cKYY7687511xYTdSMzNaqZ; Fri, 17 May 2024 05:07:32 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) by mx.groups.io with SMTP id smtpd.web11.38977.1715947651185185469 for ; Fri, 17 May 2024 05:07:31 -0700 X-CSE-ConnectionGUID: k/2fEjxhSCSBIEvfIdv0Zw== X-CSE-MsgGUID: cGPDr19FQBa/oR+uzmCTbw== X-IronPort-AV: E=McAfee;i="6600,9927,11074"; a="12308841" X-IronPort-AV: E=Sophos;i="6.08,167,1712646000"; d="scan'208,217";a="12308841" X-Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2024 05:07:31 -0700 X-CSE-ConnectionGUID: 5Isn26y8TJWv/HAan0m4eg== X-CSE-MsgGUID: S6Alhz0LRV+mJuDtl+b2pA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,167,1712646000"; d="scan'208,217";a="32312136" X-Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orviesa008.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 17 May 2024 05:07:31 -0700 X-Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Fri, 17 May 2024 05:07:30 -0700 X-Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Fri, 17 May 2024 05:07:29 -0700 X-Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Fri, 17 May 2024 05:07:29 -0700 X-Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.168) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 17 May 2024 05:07:29 -0700 X-Received: from MN6PR11MB8244.namprd11.prod.outlook.com (2603:10b6:208:470::14) by SA0PR11MB4655.namprd11.prod.outlook.com (2603:10b6:806:9d::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.30; Fri, 17 May 2024 12:07:27 +0000 X-Received: from MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::41a4:c775:32e6:76a8]) by MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::41a4:c775:32e6:76a8%4]) with mapi id 15.20.7587.028; Fri, 17 May 2024 12:07:27 +0000 From: "Ni, Ray" To: "Tan, Dun" , "devel@edk2.groups.io" CC: Liming Gao , "Wu, Jiaxin" Subject: Re: [edk2-devel] [PATCH 6/9] MdeModulePkg:Remove unnecessary global variable Thread-Topic: [PATCH 6/9] MdeModulePkg:Remove unnecessary global variable Thread-Index: AQHaqD+UmVLGHwTdSkm8tiPZ0RbNxrGbVPtY Date: Fri, 17 May 2024 12:07:27 +0000 Message-ID: References: <20240517094917.513-1-dun.tan@intel.com> <20240517094917.513-7-dun.tan@intel.com> In-Reply-To: <20240517094917.513-7-dun.tan@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MN6PR11MB8244:EE_|SA0PR11MB4655:EE_ x-ms-office365-filtering-correlation-id: b2ef6b12-92de-4d46-57f0-08dc7669eb54 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: =?us-ascii?Q?bNCHasrQBtBo1DmTmj9w3bvAv3/GxVPFi0eAXJNHEfJQWN3ukLYKWavsv8b/?= =?us-ascii?Q?CA6y2H6/X33tL6XnbWbVCAnwxNhmtNlA328xXXzxwwF23e4fQhuXSooUdKjK?= =?us-ascii?Q?M7xZ9cVFJL0VDPIjdeA9fptFLYiDJTfNxflyPZ0TtyikrxFH2mZ5xlNO9uVa?= =?us-ascii?Q?YD6AhtmZ3VYJiuQTQytl147Z9lO0YPMOzrTm2M3PqjyJcHMXk54iHvB7DAOt?= =?us-ascii?Q?9kEYNFXruTsLNg+GhCMrkNlqqWz8IZ0+ig0IASaar5YdG7eHaAgen2Uj9owU?= =?us-ascii?Q?5x+776j+2FxS7kjciyVJpcocYIoSG+5LIx2e1YHffaHeRwGgKdyxxVS/hySt?= =?us-ascii?Q?Z1EQxHHzh5jXfJxybABjmwURDEs+9B4hQxnC2k8314+/hFzCe1u5gpMc0HwR?= =?us-ascii?Q?WUSM0aPc1WFaBhZApOiLVw6JjUrJZeYbsNZpJlriMPuDE3GaqXObLKNRkBEk?= =?us-ascii?Q?lJMaLF/QjMXNbs31/IwLvBo8H3IkpeYW2TzKU/l04S3l2dDRlPZWWELJvsuJ?= =?us-ascii?Q?/Kx0ig1mgMHqceNHYTZRv8qhNEMfO7Gvkj96A+PJFOqrYgMFSzMUbt/8S6nY?= =?us-ascii?Q?zUEegBsjH/r/fLeA7L+UL/VZfoTfhfgbLfssTJVCyz9mtfVPpTHvHVI9y3Yr?= =?us-ascii?Q?ntFOAvOVI9F3l0XpDCcaJEquTyx1D0Mjg0PH2ACjLaA1mmEEcroqseiHqwO7?= =?us-ascii?Q?b3y2qjY2gdmcvk4SynEbj8OxzfrgnBF51v9XfI36ATQuSEIUuWKLGKhOD7Pj?= =?us-ascii?Q?xiNxdK4yNqPQ6wDQTHJwyXfloumSpDRqYfDuurh06sFyKacHlfR6EXfWyuhI?= =?us-ascii?Q?pi/fahfWzWKrNK+R8ALcPzl4RSVmpbQop47XlppQzuXVPG4DMVH4s1C/C52g?= =?us-ascii?Q?+Q4UXMLG3gwCs1KaI3NloIIkHItu24kyC3ZF2jcJgqnZsuLWYDvmb5nvHB7G?= =?us-ascii?Q?HFAOco4B4Cve8yJiFwtDn+8Y2H8Eb10qfEk20LBdx8Xm7xN6x0A+4+YaAqZf?= =?us-ascii?Q?oTgwQtM3NQ5A96D/EowJQjtsGckR7vKyGAXL23DDiEVqJCpfBQnXR5ic9h4T?= =?us-ascii?Q?FYZcl+ozURf8VpIqCq++t/eXq/xY/GylkYIe+KhhsTg4MSVfmiwJoEQ/RLUZ?= =?us-ascii?Q?qUuOwE8TVz72qaJG2dAQLRqd0W6ya+kIG0s0U3lC5ujfHpSeOEHG9VJ7e9oN?= =?us-ascii?Q?lk1t1RSpl+kfSSTB50ZCeRggsdo46loAnCkaCB1AC7borBuGxl+BunAkR4eQ?= =?us-ascii?Q?2G2zUmrUDgKB24qn0dm0tC8pxGBtQwHYo309FKBAn+ExXIksckZmCmjjaqcn?= =?us-ascii?Q?+9OFqfvz3YuTZYjEbYdgCRGhKjpKeDamQiAj4ORANYsCJQ=3D=3D?= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?5503ZFmZ0x16NRUdWw6YoplWq4A5TmduNrxhz6JsdZa3392QYbEwO4cCGmY3?= =?us-ascii?Q?PO57ZO0aDyrUg35AIcyHzKwn/btS+p5lFOaFTMj5kWrO1PAGPOCNDm59gI4P?= =?us-ascii?Q?IPeLRT1gQk91djW+LIsKwFCdF5SS61KsLLCU7AFq8oEG8pIWhXJSzgAea3hQ?= =?us-ascii?Q?XfgAZ6i+CkV3bhDChyD+zJYITEyBItMA9vPdroQibG3/O9v6ahLXQowzrfal?= =?us-ascii?Q?Zx0Y5sp2De/hT0Ooy4QDafnDpPX9XS96ZKzGEhJlxUXX4kmtEXX9YTG+blC3?= =?us-ascii?Q?A4q5UQl1I93zcuehcwr8YyhM0qhgi3xzLWqkmOBxWwGuDZLK1iS7Km5YUXH8?= =?us-ascii?Q?x3na3SBxDLMTw9tRz4wNiUQXqRA0TmXMiEWWef1GLGucD1zRjEnlDN7EpPNO?= =?us-ascii?Q?BWnnA5qYlq8dfywkhUz4i+Q6dDyNgZyrNSGA57+CCLgfXcwjOjn5hpMVCLHN?= =?us-ascii?Q?oe7/WXqqveoTsTzH7tazh8jbnt/DghP5owKkymgy966/3aDx51fVKU1fsvwa?= =?us-ascii?Q?tEzTbXNUS9NOPookAThcoBEYEmxsfq3lp6jRdKVPNPtV82IbpF0g3qfH71vE?= =?us-ascii?Q?Wp2mn3OcNnfjYr8MS+jfGv22tcUeaCR4ria/X6633boiEVPNfGgjkW52rntC?= =?us-ascii?Q?vlAy+MYARUD7slJzZUCBU86ZMBeajbt722ebDieZc3qxWOC5YCM0GKOgbh7V?= =?us-ascii?Q?iSftMrZ8C5H+o0auO/L5J69btPMK6KeQya4OInDnpUgHWWjGAQd567DXcJ2u?= =?us-ascii?Q?weFkm9KTptluyojsqJMzsMGbXe2Ch7zdrl5tiocp/lwC2qhMwUIWauR9fnYL?= =?us-ascii?Q?qfh6w0PCCMT4SN8SirdsgDSqu9ZlAewfBAk6GNVcPSk5WrEfmpQeTIo5IwQw?= =?us-ascii?Q?ARIKhVrGCYckTkBgsrNh8B5e6bcFHIt0p9jD9xX3GZfi53nS1PJXoIi8vCW0?= =?us-ascii?Q?PA2RXBUj8sBg0VjEjfef+xaZ/g1pOCJjy5VlvHKPqV3gRKo0GRhC9ogxu/iH?= =?us-ascii?Q?dXCdyDAIS8F2tl63D5DiqT36ZkELbp2EpCN5hYUzF6N4JDIUOIkeU8/RdGV/?= =?us-ascii?Q?YhmfgfCXIEoeIgOzEycYR68omz7p21j8yJyMgjZCc5893y26n3qvggxySv8u?= =?us-ascii?Q?hdzS0C8+4WzWCCCBni3ma2p6xG/hq2XiMbZW27MTb6fg7mQGJ+7G80Sw5PeC?= =?us-ascii?Q?5otArmyGG5W8kk6n+jetKdEQPPQLriuGyquj/Gsnl/ocFnQjysm+v/7lH3ii?= =?us-ascii?Q?eejrsmq0PHEVLKT9NvJhbH+jqEzlcNqAK93EJfC7Y/08/4/fVUGYU2LIAGmV?= =?us-ascii?Q?UlRIjfFhhjbq5fMdFZRYMSIXJFBk0PaV/yDDnbNswWvNVkbafnXk4o7LB6Kx?= =?us-ascii?Q?1wykciPFejv4Og03RVg8NsbXBL1cymzjsL+3HfVub9PHN/cuWTRCXXYaXbR7?= =?us-ascii?Q?uiFzziHCSnDohXF8RnpdCY444bjx4s6MpVKBvO16WAOzxMzN806Y8MYkWWCD?= =?us-ascii?Q?SPFGwegesCfppjVbuKSUuyo+i0khxTZmJkIizpMFJND6x6j6Mp5DjqtG28pA?= =?us-ascii?Q?eHwwAVCHaEk20V6nVBg=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN6PR11MB8244.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b2ef6b12-92de-4d46-57f0-08dc7669eb54 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 May 2024 12:07:27.0982 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: x4G+rzk1cJdF13hgFZAzFHNuvhH4qcctAZAoLf+SIK/kQZN34DMX3Yt20m2JcKhSnktNuldaw9mRZ2JMjJoz0A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR11MB4655 X-OriginatorOrg: intel.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Fri, 17 May 2024 05:07:31 -0700 Resent-From: ray.ni@intel.com Reply-To: devel@edk2.groups.io,ray.ni@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: I53T9nDd3eXTavfDqDgaJGAkx7686176AA= Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_MN6PR11MB8244C31E9F5F493B37EA2A458CEE2MN6PR11MB8244namp_" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=jzMckx8E; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none) --_000_MN6PR11MB8244C31E9F5F493B37EA2A458CEE2MN6PR11MB8244namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Ray Ni Thanks, Ray ________________________________ From: Tan, Dun Sent: Friday, May 17, 2024 17:49 To: devel@edk2.groups.io Cc: Ni, Ray ; Liming Gao ; Wu, = Jiaxin Subject: [PATCH 6/9] MdeModulePkg:Remove unnecessary global variable Remove the two unnecessary global variables and replace them by two local variables: mVariableRuntimeNvCacheBufferSize mVariableRuntimeVolatileCacheBufferSize Signed-off-by: Dun Tan Cc: Ray Ni Cc: Liming Gao Cc: Jiaxin Wu --- MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.c | 14 ++= +++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeD= xe.c b/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.c index 6930875e9f..8b42ae7d72 100644 --- a/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.c +++ b/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.c @@ -13,7 +13,7 @@ InitCommunicateBuffer() is really function to check the variable data si= ze. -Copyright (c) 2010 - 2019, Intel Corporation. All rights reserved.
+Copyright (c) 2010 - 2024, Intel Corporation. All rights reserved.
Copyright (c) Microsoft Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent @@ -55,8 +55,6 @@ VARIABLE_STORE_HEADER *mVariableRuntimeNvCacheB= uffer =3D NULL; VARIABLE_STORE_HEADER *mVariableRuntimeVolatileCacheBuffer =3D N= ULL; UINTN mVariableBufferSize; UINTN mVariableRuntimeHobCacheBufferSize; -UINTN mVariableRuntimeNvCacheBufferSize; -UINTN mVariableRuntimeVolatileCacheBufferSize; UINTN mVariableBufferPayloadSize; BOOLEAN mVariableRuntimeCachePendingUpdate; BOOLEAN mVariableRuntimeCacheReadLock; @@ -1691,6 +1689,8 @@ SmmVariableReady ( ) { EFI_STATUS Status; + UINTN RuntimeNvCacheSize; + UINTN RuntimeVolatileCacheSize; Status =3D gBS->LocateProtocol (&gEfiSmmVariableProtocolGuid, NULL, (VOI= D **)&mSmmVariable); if (EFI_ERROR (Status)) { @@ -1721,16 +1721,16 @@ SmmVariableReady ( // Status =3D GetRuntimeCacheInfo ( &mVariableRuntimeHobCacheBufferSize, - &mVariableRuntimeNvCacheBufferSize, - &mVariableRuntimeVolatileCacheBufferSize, + &RuntimeNvCacheSize, + &RuntimeVolatileCacheSize, &mVariableAuthFormat ); if (!EFI_ERROR (Status)) { Status =3D InitVariableCache (&mVariableRuntimeHobCacheBuffer, &mVar= iableRuntimeHobCacheBufferSize); if (!EFI_ERROR (Status)) { - Status =3D InitVariableCache (&mVariableRuntimeNvCacheBuffer, &mVa= riableRuntimeNvCacheBufferSize); + Status =3D InitVariableCache (&mVariableRuntimeNvCacheBuffer, &Run= timeNvCacheSize); if (!EFI_ERROR (Status)) { - Status =3D InitVariableCache (&mVariableRuntimeVolatileCacheBuff= er, &mVariableRuntimeVolatileCacheBufferSize); + Status =3D InitVariableCache (&mVariableRuntimeVolatileCacheBuff= er, &RuntimeVolatileCacheSize); if (!EFI_ERROR (Status)) { Status =3D SendRuntimeVariableCacheContextToSmm (); if (!EFI_ERROR (Status)) { -- 2.31.1.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 (#119045): https://edk2.groups.io/g/devel/message/119045 Mute This Topic: https://groups.io/mt/106150803/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- --_000_MN6PR11MB8244C31E9F5F493B37EA2A458CEE2MN6PR11MB8244namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Reviewed-by: Ray Ni <ray.ni@intel.com>

Thanks,
Ray

From: Tan, Dun <dun.tan@= intel.com>
Sent: Friday, May 17, 2024 17:49
To: devel@edk2.groups.io <devel@edk2.groups.io>
Cc: Ni, Ray <ray.ni@intel.com>; Liming Gao <gaoliming@byoso= ft.com.cn>; Wu, Jiaxin <jiaxin.wu@intel.com>
Subject: [PATCH 6/9] MdeModulePkg:Remove unnecessary global variable=
 
Remove the two unnecessary global variables and replace them by two local variables:
mVariableRuntimeNvCacheBufferSize
mVariableRuntimeVolatileCacheBufferSize

Signed-off-by: Dun Tan <dun.tan@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Jiaxin Wu <jiaxin.wu@intel.com>
---
 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.c | = 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeD= xe.c b/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.c index 6930875e9f..8b42ae7d72 100644
--- a/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.c +++ b/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.c @@ -13,7 +13,7 @@
 
   InitCommunicateBuffer() is really function to check the variab= le data size.
 
-Copyright (c) 2010 - 2019, Intel Corporation. All rights reserved.<BR&g= t;
+Copyright (c) 2010 - 2024, Intel Corporation. All rights reserved.<BR&g= t;
 Copyright (c) Microsoft Corporation.<BR>
 SPDX-License-Identifier: BSD-2-Clause-Patent
 
@@ -55,8 +55,6 @@ VARIABLE_STORE_HEADER      =      *mVariableRuntimeNvCacheBuffer   &n= bsp;   =3D NULL;
 VARIABLE_STORE_HEADER        =    *mVariableRuntimeVolatileCacheBuffer =3D NULL;
 UINTN          &nbs= p;            &= nbsp;   mVariableBufferSize;
 UINTN          &nbs= p;            &= nbsp;   mVariableRuntimeHobCacheBufferSize;
-UINTN           &nb= sp;            =    mVariableRuntimeNvCacheBufferSize;
-UINTN           &nb= sp;            =    mVariableRuntimeVolatileCacheBufferSize;
 UINTN          &nbs= p;            &= nbsp;   mVariableBufferPayloadSize;
 BOOLEAN          &n= bsp;            = ;  mVariableRuntimeCachePendingUpdate;
 BOOLEAN          &n= bsp;            = ;  mVariableRuntimeCacheReadLock;
@@ -1691,6 +1689,8 @@ SmmVariableReady (
   )
 {
   EFI_STATUS  Status;
+  UINTN       RuntimeNvCacheSize;
+  UINTN       RuntimeVolatileCacheSize;=
 
   Status =3D gBS->LocateProtocol (&gEfiSmmVariableProtoco= lGuid, NULL, (VOID **)&mSmmVariable);
   if (EFI_ERROR (Status)) {
@@ -1721,16 +1721,16 @@ SmmVariableReady (
     //
     Status =3D  GetRuntimeCacheInfo (
            &nb= sp;    &mVariableRuntimeHobCacheBufferSize,
-            &n= bsp;   &mVariableRuntimeNvCacheBufferSize,
-            &n= bsp;   &mVariableRuntimeVolatileCacheBufferSize,
+            &n= bsp;   &RuntimeNvCacheSize,
+            &n= bsp;   &RuntimeVolatileCacheSize,
            &nb= sp;    &mVariableAuthFormat
            &nb= sp;    );
     if (!EFI_ERROR (Status)) {
       Status =3D InitVariableCache (&mVa= riableRuntimeHobCacheBuffer, &mVariableRuntimeHobCacheBufferSize);
       if (!EFI_ERROR (Status)) {
-        Status =3D InitVariableCache (&= amp;mVariableRuntimeNvCacheBuffer, &mVariableRuntimeNvCacheBufferSize);=
+        Status =3D InitVariableCache (&= amp;mVariableRuntimeNvCacheBuffer, &RuntimeNvCacheSize);
         if (!EFI_ERROR (Status)) {=
-          Status =3D InitVari= ableCache (&mVariableRuntimeVolatileCacheBuffer, &mVariableRuntimeV= olatileCacheBufferSize);
+          Status =3D InitVari= ableCache (&mVariableRuntimeVolatileCacheBuffer, &RuntimeVolatileCa= cheSize);
           if (!EFI_ERROR= (Status)) {
             St= atus =3D SendRuntimeVariableCacheContextToSmm ();
             if= (!EFI_ERROR (Status)) {
--
2.31.1.windows.1

_._,_._,_

Groups.io Links:

=20 You receive all messages sent to this group. =20 =20

View/Reply Online (#119045) | =20 | Mute= This Topic | New Topic
Your Subscriptio= n | Contact Group Owner | Unsubscribe [rebecca@openfw.io]

_._,_._,_
--_000_MN6PR11MB8244C31E9F5F493B37EA2A458CEE2MN6PR11MB8244namp_--