From patchwork Thu Sep 4 02:09:51 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laszlo Ersek X-Patchwork-Id: 36672 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qg0-f71.google.com (mail-qg0-f71.google.com [209.85.192.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 76BC320792 for ; Thu, 4 Sep 2014 02:10:33 +0000 (UTC) Received: by mail-qg0-f71.google.com with SMTP id f51sf28310963qge.6 for ; Wed, 03 Sep 2014 19:10:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:subject:precedence:reply-to:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :errors-to:x-original-sender:x-original-authentication-results :mailing-list:content-type:content-transfer-encoding; bh=JalO+xd783Y1XDJkFSkeGEaU3vUP7QUCmyS5vZpsnVg=; b=Uq3oaSC53LttJS00ovu+W1cfQAWt7bT/3B4nX1iYMKbXWsBT6fQ2Ma3LKmmVuO9Uzz ZdXPElAqZ+b/DxtHnYIsnHFtpXOVb3g5IGKr9FK46XkZiFDvcGbKFWuc2mkG9jOhYkfP /D/WYxpV6Uo3UQMuHpp59JxCcnPa+ScyBz3AU5cKCwD9PTPVfVDc6mmI9ogHrD4dcJDL L1pSDOHVQXW1X7S2y1DZ5qq7JzeygXZNc2pZhYyryBsA2zrSRtftFcBz9EI28IfBmZ8T gbS32+IGXulkT1arx3d16MgGzo22HlfADxoXL8DVls20ZSyk80FytWsqP6xlgfpmQgq6 1Ilg== X-Gm-Message-State: ALoCoQkenz3P1qobpWQ94Vf/p5X19DcmQ5SfSJpKMeb/VdS8M+cpUBAYAW+41YYF5zQRMwNLOI0C X-Received: by 10.236.112.234 with SMTP id y70mr849854yhg.32.1409796633293; Wed, 03 Sep 2014 19:10:33 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.40.180 with SMTP id x49ls69409qgx.97.gmail; Wed, 03 Sep 2014 19:10:33 -0700 (PDT) X-Received: by 10.220.44.136 with SMTP id a8mr1009481vcf.42.1409796633208; Wed, 03 Sep 2014 19:10:33 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id og3si4925728vcb.37.2014.09.03.19.10.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Sep 2014 19:10:33 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.172 as permitted sender) client-ip=209.85.220.172; Received: by mail-vc0-f172.google.com with SMTP id ij19so9896483vcb.31 for ; Wed, 03 Sep 2014 19:10:33 -0700 (PDT) X-Received: by 10.52.138.210 with SMTP id qs18mr861704vdb.18.1409796633114; Wed, 03 Sep 2014 19:10:33 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp767292vcb; Wed, 3 Sep 2014 19:10:32 -0700 (PDT) X-Received: by 10.50.171.199 with SMTP id aw7mr1483066igc.27.1409796632250; Wed, 03 Sep 2014 19:10:32 -0700 (PDT) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id fz4si425666icb.65.2014.09.03.19.10.31 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 03 Sep 2014 19:10:32 -0700 (PDT) Received-SPF: pass (google.com: domain of edk2-devel-bounces@lists.sourceforge.net designates 216.34.181.88 as permitted sender) client-ip=216.34.181.88; Received: from localhost ([127.0.0.1] helo=sfs-ml-3.v29.ch3.sourceforge.com) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XPMVD-0003M9-Ts; Thu, 04 Sep 2014 02:10:23 +0000 Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XPMVC-0003M1-BA for edk2-devel@lists.sourceforge.net; Thu, 04 Sep 2014 02:10:22 +0000 Received-SPF: pass (sog-mx-3.v43.ch3.sourceforge.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=lersek@redhat.com; helo=mx1.redhat.com; Received: from mx1.redhat.com ([209.132.183.28]) by sog-mx-3.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1XPMVB-0004q5-BV for edk2-devel@lists.sourceforge.net; Thu, 04 Sep 2014 02:10:22 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s842AA0m006307 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 3 Sep 2014 22:10:10 -0400 Received: from lacos-laptop-7.usersys.redhat.com (ovpn-116-16.ams2.redhat.com [10.36.116.16]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s8429wjg009610; Wed, 3 Sep 2014 22:10:08 -0400 From: Laszlo Ersek To: ard.biesheuvel@linaro.org, edk2-devel@lists.sourceforge.net, olivier.martin@arm.com, peter.maydell@linaro.org, christoffer.dall@linaro.org, ilias.biris@linaro.org, leif.lindholm@linaro.org, michael.casadevall@linaro.org Date: Thu, 4 Sep 2014 04:09:51 +0200 Message-Id: <1409796596-12615-5-git-send-email-lersek@redhat.com> In-Reply-To: <1409796596-12615-1-git-send-email-lersek@redhat.com> References: <1409743096-14919-24-git-send-email-ard.biesheuvel@linaro.org> <1409796596-12615-1-git-send-email-lersek@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Spam-Score: -3.2 (---) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -1.7 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain X-Headers-End: 1XPMVB-0004q5-BV Subject: [edk2] [PATCH 4/9] ArmVirtualizationPlatformLib: lock down client module types X-BeenThere: edk2-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list Reply-To: edk2-devel@lists.sourceforge.net List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.sourceforge.net X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lersek@redhat.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.172 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Also, clean up a number of phase-related comments. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek --- .../ArmVirtualizationPlatformLib/ArmVirtualizationPlatformLib.inf | 2 +- .../Library/ArmVirtualizationPlatformLib/Virt.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ArmPlatformPkg/ArmVirtualizationPkg/Library/ArmVirtualizationPlatformLib/ArmVirtualizationPlatformLib.inf b/ArmPlatformPkg/ArmVirtualizationPkg/Library/ArmVirtualizationPlatformLib/ArmVirtualizationPlatformLib.inf index 5bb7f07..241766b 100644 --- a/ArmPlatformPkg/ArmVirtualizationPkg/Library/ArmVirtualizationPlatformLib/ArmVirtualizationPlatformLib.inf +++ b/ArmPlatformPkg/ArmVirtualizationPkg/Library/ArmVirtualizationPlatformLib/ArmVirtualizationPlatformLib.inf @@ -18,7 +18,7 @@ FILE_GUID = 00214cc1-06d1-45fe-9700-dca5726ad7bf MODULE_TYPE = BASE VERSION_STRING = 1.0 - LIBRARY_CLASS = ArmPlatformLib + LIBRARY_CLASS = ArmPlatformLib|SEC PEIM [Packages] MdePkg/MdePkg.dec diff --git a/ArmPlatformPkg/ArmVirtualizationPkg/Library/ArmVirtualizationPlatformLib/Virt.c b/ArmPlatformPkg/ArmVirtualizationPkg/Library/ArmVirtualizationPlatformLib/Virt.c index c1820d5..c10ef91 100644 --- a/ArmPlatformPkg/ArmVirtualizationPkg/Library/ArmVirtualizationPlatformLib/Virt.c +++ b/ArmPlatformPkg/ArmVirtualizationPkg/Library/ArmVirtualizationPlatformLib/Virt.c @@ -38,11 +38,7 @@ ArmPlatformGetBootMode ( } /** - Initialize controllers that must setup in the normal world - - This function is called by the ArmPlatformPkg/Pei or ArmPlatformPkg/Pei/PlatformPeim - in the PEI phase. - + This function is called by PrePeiCore, in the SEC phase. **/ RETURN_STATUS ArmPlatformInitialize ( @@ -62,6 +58,8 @@ ArmPlatformInitialize ( This memory is generally represented by the DRAM. + This function is called from InitializeMemory() in MemoryInitPeim, in the PEI + phase. **/ VOID ArmPlatformInitializeSystemMemory (