From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.3496.1585823373704926093 for ; Thu, 02 Apr 2020 03:29:33 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ard.biesheuvel@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2A0B331B; Thu, 2 Apr 2020 03:29:33 -0700 (PDT) Received: from [10.37.8.12] (unknown [10.37.8.12]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E41F43F71E; Thu, 2 Apr 2020 03:29:31 -0700 (PDT) Subject: Re: [edk2-devel] [PATCH 1/5] ArmPkg/CpuDxe: use private copy of GetRootTranslationTableInfo() To: Leif Lindholm Cc: devel@edk2.groups.io, Ard Biesheuvel References: <20200328104321.8668-1-ard.biesheuvel@linaro.org> <20200328104321.8668-2-ard.biesheuvel@linaro.org> <20200402101610.GL7468@vanye> <20200402102804.GN7468@vanye> From: "Ard Biesheuvel" Message-ID: <0e6a6c40-1a48-a5cb-563f-4f5b39c41fef@arm.com> Date: Thu, 2 Apr 2020 12:29:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200402102804.GN7468@vanye> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: base64 T24gNC8yLzIwIDEyOjI4IFBNLCBMZWlmIExpbmRob2xtIHdyb3RlOg0KPiBPbiBUaHUsIEFw ciAwMiwgMjAyMCBhdCAxMjoyMDo1NCArMDIwMCwgQXJkIEJpZXNoZXV2ZWwgd3JvdGU6DQo+ PiBPbiA0LzIvMjAgMTI6MTYgUE0sIExlaWYgTGluZGhvbG0gdmlhIGdyb3Vwcy5pbyB3cm90 ZToNC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