From patchwork Fri Oct 28 11:42:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 79910 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp1128104qge; Fri, 28 Oct 2016 04:43:09 -0700 (PDT) X-Received: by 10.98.103.152 with SMTP id t24mr24407953pfj.77.1477654989017; Fri, 28 Oct 2016 04:43:09 -0700 (PDT) Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id v69si13092395pgd.316.2016.10.28.04.43.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Oct 2016 04:43:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 082B481D82; Fri, 28 Oct 2016 04:43:08 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com [IPv6:2a00:1450:400c:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 8268181D82 for ; Fri, 28 Oct 2016 04:43:06 -0700 (PDT) Received: by mail-wm0-x22b.google.com with SMTP id p190so4103144wmp.1 for ; Fri, 28 Oct 2016 04:43:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=eA/yNXimQbVz3cSkoGTdWMgDsP/ZCB2/v/OcLMPknJM=; b=A0avBO+vleVARF3Vu39nwXrpAxbp2dAGQyrjfZK4vOzG6xmlwttK/efwgtHK/QookY oXuoOuDF8naUsKfs4XiSiSVuPCOFKpGIAhCyWoyocEg4KnzQR0F6lpQpWEOb9T2ynd6A BZN+1LO0xUTURdx+P6XqQf3s2xiArVLQ4CoS0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=eA/yNXimQbVz3cSkoGTdWMgDsP/ZCB2/v/OcLMPknJM=; b=ORxXM5KZtNKoH6WdZr1cveDvPmdOAs0qeBWTpsEs9Iusv4vUhHU9K8tf0AGlaRvGwy prlGkCpVKLcG2oZx/+MSKO099UCszWs+FbO2IfCF5Svb6u0v604TOiRRuU/eef81zwNv z7FbR2NHsW2NtJF40fr5O/+g5t/vjQ/j6FNAT2CqBiODrxjX+w09tunqP8hv9gjgYzt9 PiiDS+u6DSmqWS+igK18SkArEq+Sf+hMQ6t1Q1PSdz0vCk6vu/WOXE2p9uci7e9+rTuf tcwahVajrvKgH5ge5Rm5RUNTBkN83Q2wekBu11+vWnygMr8Nxo9WqC77O8nPGjy9tWFb XczQ== X-Gm-Message-State: ABUngvcj0TozZvKYDaZix2l+6e94lS86PSFIF58De3Qqr8T5n+41LVhFY7EI6K43CSkg0Ahg X-Received: by 10.194.110.129 with SMTP id ia1mr13121522wjb.230.1477654985362; Fri, 28 Oct 2016 04:43:05 -0700 (PDT) Received: from localhost.localdomain ([105.150.227.229]) by smtp.gmail.com with ESMTPSA id 1sm8485220wmk.22.2016.10.28.04.43.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 28 Oct 2016 04:43:04 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org, leif.lindholm@linaro.org Date: Fri, 28 Oct 2016 12:42:53 +0100 Message-Id: <1477654974-5598-3-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477654974-5598-1-git-send-email-ard.biesheuvel@linaro.org> References: <1477654974-5598-1-git-send-email-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH 2/3] ArmPlatformPkg/PrePi RVCT: use relative reference to mSystemMemoryEnd 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: , Cc: Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Bring the RVCT version of the PrePi entry point code in line with the GCC version, by using a relative rather than an absolute reference to the mSystemMemoryEnd variable. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel --- ArmPlatformPkg/PrePi/Arm/ModuleEntryPoint.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Leif Lindholm diff --git a/ArmPlatformPkg/PrePi/Arm/ModuleEntryPoint.asm b/ArmPlatformPkg/PrePi/Arm/ModuleEntryPoint.asm index 1e9daf563bb6..80c2877cbdbf 100644 --- a/ArmPlatformPkg/PrePi/Arm/ModuleEntryPoint.asm +++ b/ArmPlatformPkg/PrePi/Arm/ModuleEntryPoint.asm @@ -48,7 +48,7 @@ _SetSVCMode // to install the stacks at the bottom of the Firmware Device (case the FD is located // at the top of the DRAM) _SystemMemoryEndInit - mov32 r1, mSystemMemoryEnd + adrll r1, mSystemMemoryEnd ldrd r2, r3, [r1] teq r3, #0 moveq r1, r2