From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 42A6B82214 for ; Fri, 3 Mar 2017 02:08:03 -0800 (PST) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Mar 2017 02:08:02 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,236,1484035200"; d="scan'208";a="63884800" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga004.jf.intel.com with ESMTP; 03 Mar 2017 02:08:02 -0800 Received: from fmsmsx156.amr.corp.intel.com (10.18.116.74) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 3 Mar 2017 02:08:02 -0800 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx156.amr.corp.intel.com (10.18.116.74) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 3 Mar 2017 02:08:01 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.88]) by SHSMSX103.ccr.corp.intel.com ([10.239.4.69]) with mapi id 14.03.0248.002; Fri, 3 Mar 2017 18:07:59 +0800 From: "Zeng, Star" To: Ard Biesheuvel , "edk2-devel@lists.01.org" , "Gao, Liming" CC: "Zeng, Star" Thread-Topic: [PATCH v3] MdeModulePkg/PeiCore: honour minimal runtime allocation granularity Thread-Index: AQHSlAKpqKQS8qJG/EqG/jHm4NjjMqGCW4mAgACHXhA= Date: Fri, 3 Mar 2017 10:07:58 +0000 Message-ID: <0C09AFA07DD0434D9E2A0C6AEB0483103B82E9BD@shsmsx102.ccr.corp.intel.com> References: <1488534218-25315-1-git-send-email-ard.biesheuvel@linaro.org> In-Reply-To: Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH v3] MdeModulePkg/PeiCore: honour minimal runtime allocation granularity 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: Fri, 03 Mar 2017 10:08:03 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 QWdyZWUgdGhlIGNvbW1lbnQgeW91IGFkZGVkIHlvdXJzZWxmLCBvciBqdXN0IHVzZSAweCV4IHRv IHJlcGxhY2UgJWQgS0IuDQpBbm90aGVyIG1pbm9yIGNvbW1lbnQgaXMgdGhhdCBFRklfUEFHRV9N QVNLIGNhbiBiZSB1c2VkIHRvIHJlcGxhY2UgRUZJX1BBR0VfU0laRSAtIDEuDQpCb3RoIHVwIHRv IHlvdS4gOikNCg0KV2l0aCB0aGUgZml4LCBSZXZpZXdlZC1ieTogU3RhciBaZW5nIDxzdGFyLnpl bmdAaW50ZWwuY29tPg0KDQpUaGFua3MsDQpTdGFyDQotLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0t LQ0KRnJvbTogQXJkIEJpZXNoZXV2ZWwgW21haWx0bzphcmQuYmllc2hldXZlbEBsaW5hcm8ub3Jn XSANClNlbnQ6IEZyaWRheSwgTWFyY2ggMywgMjAxNyA1OjU5IFBNDQpUbzogZWRrMi1kZXZlbEBs aXN0cy4wMS5vcmc7IEdhbywgTGltaW5nIDxsaW1pbmcuZ2FvQGludGVsLmNvbT47IFplbmcsIFN0 YXIgPHN0YXIuemVuZ0BpbnRlbC5jb20+DQpDYzogQXJkIEJpZXNoZXV2ZWwgPGFyZC5iaWVzaGV1 dmVsQGxpbmFyby5vcmc+DQpTdWJqZWN0OiBSZTogW1BBVENIIHYzXSBNZGVNb2R1bGVQa2cvUGVp Q29yZTogaG9ub3VyIG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