From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Cc: Ard Biesheuvel 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: [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: , X-List-Received-Date: Fri, 28 Oct 2016 11:43:06 -0000 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(-) 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 -- 2.7.4