From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mx.groups.io with SMTP id smtpd.web09.14131.1622644754155915371 for ; Wed, 02 Jun 2021 07:39:14 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.126, mailfrom: zhiguang.liu@intel.com) IronPort-SDR: v77Ge3BGegcc5b4ZpBEu1hZ70oVFZhI9wi38gWUGUt+kFo2RGANMn2kZDHwD+uJ/68AWofSnjf n7i1Zv2nctOw== X-IronPort-AV: E=McAfee;i="6200,9189,10003"; a="191151153" X-IronPort-AV: E=Sophos;i="5.83,242,1616482800"; d="scan'208";a="191151153" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jun 2021 07:39:12 -0700 IronPort-SDR: djqfgdi8NxqvJN9S87dRIromB7YGFfHbFG1akbARr6qbnD/WtJgfvyvN190zmPtg2HgAD60HT2 Y6sBb3Tre4yQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,242,1616482800"; d="scan'208";a="447425058" Received: from fieedk002.ccr.corp.intel.com ([10.239.158.144]) by fmsmga008.fm.intel.com with ESMTP; 02 Jun 2021 07:39:10 -0700 From: "Zhiguang Liu" To: devel@edk2.groups.io Cc: Maurice Ma , Guo Dong , Benjamin You Subject: [PATCH] UefiPayloadPkg: Use DynamicEx instead of Dynamic to pass PCD across binary Date: Wed, 2 Jun 2021 22:39:03 +0800 Message-Id: <20210602143903.1587-1-zhiguang.liu@intel.com> X-Mailer: git-send-email 2.30.0.windows.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable When passing PCD database from Edk2 boot loader to Universal Payload, the l= ocal token number in boot loader PCD database can be different with that in Payl= oad PCD database. Dynamic PCD directly use local token number, while DynamicEx will search to= ken number by Guid and ExTokenNumber, which are unique pair and can make sure finding = the correct token number in boot loader's PCD database Cc: Maurice Ma Cc: Guo Dong Cc: Benjamin You Signed-off-by: Zhiguang Liu --- UefiPayloadPkg/UefiPayloadPkg.dsc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UefiPayloadPkg/UefiPayloadPkg.dsc b/UefiPayloadPkg/UefiPayload= Pkg.dsc index 37ad5a0ae7..021d825d0a 100644 --- a/UefiPayloadPkg/UefiPayloadPkg.dsc +++ b/UefiPayloadPkg/UefiPayloadPkg.dsc @@ -340,7 +340,7 @@ #=0D ##########################################################################= ######=0D =0D -[PcdsDynamicDefault]=0D +[PcdsDynamicExDefault]=0D gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0=0D gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0=0D gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0=0D --=20 2.30.0.windows.2