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 256E28040B for ; Thu, 16 Mar 2017 20:45:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1489722331; x=1521258331; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=kLOxUSJmund5eWsAX1sYge1phjSXlOs9HdG626CoErY=; b=iTncWIJfJQRJGUrti/nSL03Ka0evAU330KtVjGZHF7yKZmjQSu+EGE53 oYdJkKl+BuAXMRGQcg8+257LSTCagg==; Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Mar 2017 20:45:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,175,1486454400"; d="scan'208";a="237354753" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga004.fm.intel.com with ESMTP; 16 Mar 2017 20:45:30 -0700 Received: from fmsmsx123.amr.corp.intel.com (10.18.125.38) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 16 Mar 2017 20:45:30 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by fmsmsx123.amr.corp.intel.com (10.18.125.38) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 16 Mar 2017 20:45:30 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.88]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.177]) with mapi id 14.03.0248.002; Fri, 17 Mar 2017 11:45:28 +0800 From: "Zeng, Star" To: Ard Biesheuvel , "edk2-devel@lists.01.org" CC: Leif Lindholm , "Cohen, Eugene" , "Tian, Feng" , "Zeng, Star" Thread-Topic: [PATCH] MdeModulePkg/DxeCore: deal with allocations spanning several memmap entries Thread-Index: AQHSnklypqRfa35toki81nOf+5mkVKGW7S8AgAF3SUA= Date: Fri, 17 Mar 2017 03:45:27 +0000 Message-ID: <0C09AFA07DD0434D9E2A0C6AEB0483103B83549F@shsmsx102.ccr.corp.intel.com> References: <1489664128-30700-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] MdeModulePkg/DxeCore: deal with allocations spanning several memmap entries X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Mar 2017 03:45:31 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 QXJkLA0KDQpJbiBmYWN0IHRoZSBmaXJzdCBoYWxmIHNob3VsZCBiZSBsaWtlIGJlbG93IGlmIGl0 IG5lZWRzIHRvIGJlIHRoZXJlLCByaWdodD8NCkVudHJ5LT5TdGFydCA+IEVuZCAgID0+ICAgRW50 cnktPlN0YXJ0ID4gKEVuZCArIDEpDQoNCkFueXdheSwgSSBhZ3JlZSB0aGUgY29tbWVudHMgIlRo ZSBmaXJzdCBoYWxmIG9mIHRoZSBleHByZXNzaW9uIGNhbiBiZSBkcm9wcGVkIiB5b3Ugc3VwcGxl bWVudGVkLg0KV2l0aCB0aGUgZmlyc3QgaGFsZiBvZiB0aGUgZXhwcmVzc2lvbiBkcm9wcGVkLCBS ZXZpZXdlZC1ieTogU3RhciBaZW5nIDxzdGFyLnplbmdAaW50ZWwuY29tPg0KDQpUaGFua3MsDQpT dGFyDQotLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KRnJvbTogQXJkIE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