]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPlatformPkg/PrePi RVCT: use relative reference to mSystemMemoryEnd
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 28 Oct 2016 11:38:51 +0000 (12:38 +0100)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 28 Oct 2016 15:26:15 +0000 (16:26 +0100)
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>
ArmPlatformPkg/PrePi/Arm/ModuleEntryPoint.asm

index 1e9daf563bb659af9e63fd39e799d3b78c8e0658..80c2877cbdbfb9eb17aaac9e73ace50c49f4c0a3 100644 (file)
@@ -48,7 +48,7 @@ _SetSVCMode
 // to install the stacks at the bottom of the Firmware Device (case the FD is located\r
 // at the top of the DRAM)\r
 _SystemMemoryEndInit\r
-  mov32 r1, mSystemMemoryEnd\r
+  adrll r1, mSystemMemoryEnd\r
   ldrd  r2, r3, [r1]\r
   teq   r3, #0\r
   moveq r1, r2\r