From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (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 D2A2A81C96 for ; Wed, 14 Dec 2016 21:12:26 -0800 (PST) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP; 14 Dec 2016 21:12:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,350,1477983600"; d="scan'208";a="42797901" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga006.fm.intel.com with ESMTP; 14 Dec 2016 21:12:26 -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.248.2; Wed, 14 Dec 2016 21:12:26 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx111.amr.corp.intel.com (10.18.116.5) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 14 Dec 2016 21:12:25 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.9]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.235]) with mapi id 14.03.0248.002; Thu, 15 Dec 2016 13:12:24 +0800 From: "Gao, Liming" To: Michael Zimmermann CC: Ard Biesheuvel , "edk2-devel@lists.01.org" , "Zeng, Star" , "Tian, Feng" Thread-Topic: [edk2] correct way to reserve memory from PrePi? Thread-Index: AQHSVfPcmMcPLvb4BEO8+6LLeza/c6EHB0+AgAAtrQCAAToTIP//f6sAgACH7EA= Date: Thu, 15 Dec 2016 05:12:23 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14D6A5625@SHSMSX104.ccr.corp.intel.com> References: <4A89E2EF3DFEDB4C8BFDE51014F606A14D6A55EE@SHSMSX104.ccr.corp.intel.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: correct way to reserve memory from PrePi? X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2016 05:12:26 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 TWljaGFlbDoNCiAgSSBhZ3JlZSB0aGlzIGlzIGFuIGlzc3VlIHRoYXQgRHhlQ29yZSBkb2Vzbid0 IGNvbnNpZGVyIHRoZSBhbGxvY2F0ZWQgbWVtb3J5IHJhbmdlIHdoZW4gaXQgYWxsb2NhdGVzIHRo ZSBmaXJzdCBtZW1vcnkgcmFuZ2UuIENvdWxkIHlvdSBzdWJtaXQgaXQgaW4gYnVnemlsbGEgd2l0 aCB0aGUgZGV0YWlsIHVzYWdlIG1vZGVsPyBUaGVuLCB3ZSBjYW4gY29udGludWUgdG8gaW52ZXN0 Z2F0ZSBob3cgdG8gcmVzb2x2ZSBpdC4gIA0KDQpUaGFua3MNCkxpbWluZw0KPiAtLS0tLU9yaWdp bmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBNaWNoYWVsIFppbW1lcm1hbm4gW21haWx0bzpzaWdt YWVwc2lsb245MkBnbWFpbC5jb21dDQo+IFNlbnQ6IFRodXJzZGF5LCBEZWNlbWJlciAxNSwgMjAx NiAxOjAyIFBNDQo+IFRvOiBHYW8sIExpbWluZyA8bGltaW5nLmdhb0BpbnRlbC5jb20+DQo+IENj OiBBcmQgQmllc2hldXZlbCA8YXJkLmJpZXNoZXV2ZWxAbGluYXJvLm9yZz47IGVkazItZGV2ZWxA bGlzdHMuMDEub3JnDQo+IDxlZGsyLWRldmVsQG1sMDEuMDEub3JnPjsgWmVuZywgU3RhciA8c3Rh ci56ZW5nQGludGVsLmNvbT47IFRpYW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