From patchwork Fri Jan 23 15:02:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 43653 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D12D3218DB for ; Fri, 23 Jan 2015 15:03:55 +0000 (UTC) Received: by mail-wi0-f198.google.com with SMTP id bs8sf1695578wib.1 for ; Fri, 23 Jan 2015 07:03:55 -0800 (PST) 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 :content-type:content-transfer-encoding:errors-to:x-original-sender :x-original-authentication-results:mailing-list; bh=fa9caX2IGccsSucmsiIElIZaxyPFPmpLUs8Ypw/7LLA=; b=aDtZopYyMa/FxjA0KubglZ0YdYt2wcXZnrvMrf9dJEBiLM9Ai5vfWKFEma5/Cn1DJO CgBHNWrOY1DJuNk5IoZWnlTYSDxslhFL0iMRG5n+3yA8HuxaqXFLTxVTiOOQNT/mZInZ zLS0sSWab5nFjVmUXJvE2gMP8+qUpTHn1SKBNcsQ0hjz0JjxWYcGYjpndjHbHPKCnDsE kytmLa7r0jYB68zoOebxMcZWy5OjvMHaMpyBuBPwBoX2vFvbpVlYR1lh1Qoi+8McPLL+ a/FiaGuRQ+TEMUvLYUSTVqjkWBqx7ZYCPho+YCumOehbCoEXBT82oaeUmFLdzp2PswTq XS4g== X-Gm-Message-State: ALoCoQmwa5ukIXAuD3CCQ8KjVn+6laZyaKUplAYlZDXvfWO7gxfg7OSuXL47K76P6hOrYXnvDre1 X-Received: by 10.112.161.201 with SMTP id xu9mr393615lbb.11.1422025435121; Fri, 23 Jan 2015 07:03:55 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.206.70 with SMTP id lm6ls293950lac.41.gmail; Fri, 23 Jan 2015 07:03:55 -0800 (PST) X-Received: by 10.112.17.197 with SMTP id q5mr7887147lbd.30.1422025434965; Fri, 23 Jan 2015 07:03:54 -0800 (PST) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com. [209.85.215.53]) by mx.google.com with ESMTPS id b5si1621459lah.17.2015.01.23.07.03.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Jan 2015 07:03:54 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by mail-la0-f53.google.com with SMTP id gq15so7733408lab.12 for ; Fri, 23 Jan 2015 07:03:54 -0800 (PST) X-Received: by 10.112.14.6 with SMTP id l6mr7827022lbc.91.1422025434849; Fri, 23 Jan 2015 07:03:54 -0800 (PST) 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.112.9.200 with SMTP id c8csp282964lbb; Fri, 23 Jan 2015 07:03:54 -0800 (PST) X-Received: by 10.42.38.9 with SMTP id a9mr8830330ice.68.1422025431847; Fri, 23 Jan 2015 07:03:51 -0800 (PST) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id i35si1288291iod.70.2015.01.23.07.03.50 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 23 Jan 2015 07:03:51 -0800 (PST) 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 1YEflw-0001M4-3H; Fri, 23 Jan 2015 15:03:44 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1YEflv-0001Lz-FT for edk2-devel@lists.sourceforge.net; Fri, 23 Jan 2015 15:03:43 +0000 Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of linaro.org designates 209.85.212.172 as permitted sender) client-ip=209.85.212.172; envelope-from=ard.biesheuvel@linaro.org; helo=mail-wi0-f172.google.com; Received: from mail-wi0-f172.google.com ([209.85.212.172]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1YEflr-0001rW-Dz for edk2-devel@lists.sourceforge.net; Fri, 23 Jan 2015 15:03:43 +0000 Received: by mail-wi0-f172.google.com with SMTP id bs8so3434208wib.5 for ; Fri, 23 Jan 2015 07:03:33 -0800 (PST) X-Received: by 10.194.48.11 with SMTP id h11mr14951277wjn.23.1422025413304; Fri, 23 Jan 2015 07:03:33 -0800 (PST) Received: from ards-macbook-pro.local ([197.129.136.117]) by mx.google.com with ESMTPSA id pl1sm2176036wic.16.2015.01.23.07.03.30 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 Jan 2015 07:03:32 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.sourceforge.net, lersek@redhat.com, olivier.martin@arm.com, roy.franz@linaro.org, leif.lindholm@linaro.org, stefano.stabellini@eu.citrix.com, ian.campbell@citrix.com, anthony.perard@citrix.com, christoffer.dall@linaro.org, xen-devel@lists.xen.org, ilias.biris@linaro.org Date: Fri, 23 Jan 2015 15:02:52 +0000 Message-Id: <1422025390-8036-4-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1422025390-8036-1-git-send-email-ard.biesheuvel@linaro.org> References: <1422025390-8036-1-git-send-email-ard.biesheuvel@linaro.org> X-Spam-Score: -1.5 (-) 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_PASS SPF: sender matches SPF record -0.0 AWL AWL: Adjusted score from AWL reputation of From: address X-Headers-End: 1YEflr-0001rW-Dz Subject: [edk2] [PATCH v1 03/21] ArmVirtualizationPkg: replace instance of FixedPcdGet() 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: ard.biesheuvel@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 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 This removes an instance of FixedPcdGet () so that the self relocating PrePi instance can poke another value into it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel --- .../ArmVirtualizationPkg/Library/ArmVirtualizationPlatformLib/Virt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArmPlatformPkg/ArmVirtualizationPkg/Library/ArmVirtualizationPlatformLib/Virt.c b/ArmPlatformPkg/ArmVirtualizationPkg/Library/ArmVirtualizationPlatformLib/Virt.c index aa4ced4582e8..3e3074af72f1 100644 --- a/ArmPlatformPkg/ArmVirtualizationPkg/Library/ArmVirtualizationPlatformLib/Virt.c +++ b/ArmPlatformPkg/ArmVirtualizationPkg/Library/ArmVirtualizationPlatformLib/Virt.c @@ -96,7 +96,7 @@ ArmPlatformInitializeSystemMemory ( ASSERT (HobData != NULL); *HobData = 0; - DeviceTreeBase = (VOID *)(UINTN)FixedPcdGet64 (PcdDeviceTreeInitialBaseAddress); + DeviceTreeBase = (VOID *)(UINTN)PcdGet64 (PcdDeviceTreeInitialBaseAddress); ASSERT (DeviceTreeBase != NULL); //