From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.93; helo=mga11.intel.com; envelope-from=liming.gao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id BB7A722280C21 for ; Fri, 29 Dec 2017 07:21:48 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Dec 2017 07:26:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,475,1508828400"; d="scan'208,217";a="190822374" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga006.fm.intel.com with ESMTP; 29 Dec 2017 07:26:46 -0800 Received: from fmsmsx111.amr.corp.intel.com (10.18.116.5) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 29 Dec 2017 07:26:45 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx111.amr.corp.intel.com (10.18.116.5) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 29 Dec 2017 07:26:44 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.152]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.218]) with mapi id 14.03.0319.002; Fri, 29 Dec 2017 23:26:43 +0800 From: "Gao, Liming" To: krishnaLee CC: Andrew Fish , "edk2-devel@lists.01.org" Thread-Topic: Re:[edk2] How to using PcdGetEx to change a PCD. Thread-Index: AQHTdLniqeQ644QGfUeGMVC24bBT/KNCHKiAgADLzACAFSgygIACd6fg Date: Fri, 29 Dec 2017 15:26:41 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E19B367@SHSMSX104.ccr.corp.intel.com> References: <2382af2.ac98.160543fea54.Coremail.sssky307@163.com> <4A89E2EF3DFEDB4C8BFDE51014F606A14E1923CC@SHSMSX104.ccr.corp.intel.com> <3f626e94.ac28.1609c7ff3a7.Coremail.sssky307@163.com> In-Reply-To: <3f626e94.ac28.1609c7ff3a7.Coremail.sssky307@163.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 Subject: Re: How to using PcdGetEx to change a PCD. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Dec 2017 15:21:49 -0000 Content-Language: en-US Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 VGhlIG1lc3NhZ2Ugc2hvd3MgdGhpcyBQQ0QgaXMgY29uZmlndXJlZCBhcyBEeW5hbWljSGlpIGlu IERTQy4gRm9yIER5bmFtaWNFeCBQQ0QsIGl0IHNob3VsZCBiZSBkZWZpbmVkIGluIERFQyBbUGNk c0R5bmFtaWNFeF0gc2VjdGlvbi4gSXQgaXMgc2V0IGluIERTQyBbUGNkc0R5bmFtaWNFeERlZmF1 bHRdIG9yIFtQY2RzRHluYW1pY0V4SGlpXSBzZWN0aW9uLg0KDQpGcm9tOiBrcmlzaG5hTGVlIFtt YWlsdG86c3Nza3kzMDdAMTYzLmNvbV0NClNlbnQ6IFRodXJzZGF5LCBEZWNlbWJlciAyOCwgMjAx NyA1OjQyIFBNDQpUbzogR2FvLCBMaW1pbmcgPGxpbWluZy5nYW9AaW50ZWwuY29tPg0KQ2M6IEFu ZHJldyBGaXNoIDxhZmlzaEBhcHBsZS5jb20+O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