From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.126; helo=mga18.intel.com; envelope-from=ruiyu.ni@intel.com; receiver=edk2-devel@lists.01.org Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) (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 7AAF020955F35 for ; Fri, 2 Mar 2018 23:02:05 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Mar 2018 23:08:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,416,1515484800"; d="scan'208";a="21728584" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga008.fm.intel.com with ESMTP; 02 Mar 2018 23:08:14 -0800 Received: from fmsmsx126.amr.corp.intel.com (10.18.125.43) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 2 Mar 2018 23:08:14 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX126.amr.corp.intel.com (10.18.125.43) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 2 Mar 2018 23:08:14 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.125]) by shsmsx102.ccr.corp.intel.com ([169.254.2.124]) with mapi id 14.03.0319.002; Sat, 3 Mar 2018 15:08:12 +0800 From: "Ni, Ruiyu" To: "Wang, Jian J" , Laszlo Ersek , "edk2-devel@lists.01.org" CC: "Dong, Eric" Thread-Topic: [PATCH] UefiCpuPkg/MpInitLib: put mReservedApLoopFunc in executable memory Thread-Index: AQHTseuL4pXYxsxCQE639VGUTIEPH6O8TfwAgACJgoCAAF1UgIAA483w Date: Sat, 3 Mar 2018 07:08:12 +0000 Message-ID: <734D49CCEBEEF84792F5B80ED585239D5BBC8636@SHSMSX104.ccr.corp.intel.com> References: <20180302055839.18248-1-jian.j.wang@intel.com> <31960905-5140-ea20-aa02-38eff5be3cba@redhat.com> <04d43b92-5697-2561-e672-600caa518141@Intel.com> In-Reply-To: Accept-Language: en-US, zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH] UefiCpuPkg/MpInitLib: put mReservedApLoopFunc in executable memory 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: Sat, 03 Mar 2018 07:02:05 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 DQoNClRoYW5rcy9SYXkNCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBX YW5nLCBKaWFuIEoNCj4gU2VudDogU2F0dXJkYXksIE1hcmNoIDMsIDIwMTggOTozMiBBTQ0KPiBU bzogTmksIFJ1aXl1IDxydWl5dS5uaUBpbnRlbC5jb20+OyBMYXN6bG8gRXJzZWsgPGxlcnNla0By ZWRoYXQuY29tPjsNCj4gZWRrMi1kZXZlbEBsaXN0cy4wMS5vcmcNCj4gQ2M6IERvbmcsIEVyaWMg PGVyaWMuZG9uZ0BpbnRlbC5jb20+DQo+IFN1YmplY3Q6IFJFOiBbUEFUQ0hdIFVlZmlDcHVQa2cv TXBJbml0TGliOiBwdXQgbVJlc2VydmVkQXBMb29wRnVuYyBpbg0KPiBleGVjdXRhYmxlIG1lbW9y eQ0KPiANCj4gDQo+IA0KPiBSZWdhcmRzLA0KPiBKaWFuDQo+IA0KPiANCj4gPiAtLS0tLU9yaWdp bmFsIE1lc3NhZ2UtLS0tLQ0KPiA+IEZyb206I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