summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2016-10-28 12:38:51 +0100
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2016-10-28 16:26:15 +0100
commitb0609e4f02fc1af93b849e48b225ca5e2c315fc0 (patch)
treee5b0fe9b3027dc04d47354712d93d09d48d6353d
parent4101c8753f4dfcb489afcba6d7dd20216545c417 (diff)
downloadedk2-b0609e4f02fc1af93b849e48b225ca5e2c315fc0.tar.gz
edk2-b0609e4f02fc1af93b849e48b225ca5e2c315fc0.tar.bz2
edk2-b0609e4f02fc1af93b849e48b225ca5e2c315fc0.zip
ArmPlatformPkg/PrePi RVCT: use relative reference to mSystemMemoryEnd
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 <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
-rw-r--r--ArmPlatformPkg/PrePi/Arm/ModuleEntryPoint.asm2
1 files changed, 1 insertions, 1 deletions
diff --git a/ArmPlatformPkg/PrePi/Arm/ModuleEntryPoint.asm b/ArmPlatformPkg/PrePi/Arm/ModuleEntryPoint.asm
index 1e9daf563b..80c2877cbd 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