]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPlatformPkg/PrePi: fix secondary stack base
authorMichael Zimmermann <sigmaepsilon92@gmail.com>
Wed, 7 Sep 2016 12:16:18 +0000 (13:16 +0100)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 7 Sep 2016 12:16:18 +0000 (13:16 +0100)
this bug was introduced by:
d2fa09a ArmPlatformPkg/PrePi: switch to ASM_FUNC() asm macro

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Zimmermann <sigmaepsilon92@gmail.com>
Tested-by: Ryan Harkin <ryan.harkin@linaro.org>
ArmPlatformPkg/PrePi/Arm/ModuleEntryPoint.S

index b7127ce9fb4c7112a36a3f9292ee40b7799f5126..39030da5f2c3d2be26dc7fe1f0f70df1f7df7d0a 100644 (file)
@@ -101,7 +101,7 @@ _GetStackBase:
   sub   r10, r1, r2\r
 \r
   // Stack for the secondary core = Number of Cores - 1\r
-  MOV32 (r0, (FixedPcdGet32(PcdCoreCount) - 1) * FixedPcdGet32(PcdCPUCoreSecondaryStackSize))\r
+  MOV32 (r1, (FixedPcdGet32(PcdCoreCount) - 1) * FixedPcdGet32(PcdCPUCoreSecondaryStackSize))\r
   sub   r10, r10, r1\r
 \r
   // r10 = The base of the MpCore Stacks (primary stack & secondary stacks)\r