diff options
author | Michael Zimmermann <sigmaepsilon92@gmail.com> | 2016-09-07 13:16:18 +0100 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-09-07 13:16:18 +0100 |
commit | 570e7cd4a42118ba9f20a616c0869503337fbc1c (patch) | |
tree | 8ddf8292a818e9d4b6114e08fbfd1bb6e65920db | |
parent | 2f4f6489d8f70f1b83851234637e4534e95bf663 (diff) | |
download | edk2-570e7cd4a42118ba9f20a616c0869503337fbc1c.tar.gz edk2-570e7cd4a42118ba9f20a616c0869503337fbc1c.tar.bz2 edk2-570e7cd4a42118ba9f20a616c0869503337fbc1c.zip |
ArmPlatformPkg/PrePi: fix secondary stack base
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>
-rw-r--r-- | ArmPlatformPkg/PrePi/Arm/ModuleEntryPoint.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ArmPlatformPkg/PrePi/Arm/ModuleEntryPoint.S b/ArmPlatformPkg/PrePi/Arm/ModuleEntryPoint.S index b7127ce9fb..39030da5f2 100644 --- a/ArmPlatformPkg/PrePi/Arm/ModuleEntryPoint.S +++ b/ArmPlatformPkg/PrePi/Arm/ModuleEntryPoint.S @@ -101,7 +101,7 @@ _GetStackBase: sub r10, r1, r2
// Stack for the secondary core = Number of Cores - 1
- MOV32 (r0, (FixedPcdGet32(PcdCoreCount) - 1) * FixedPcdGet32(PcdCPUCoreSecondaryStackSize))
+ MOV32 (r1, (FixedPcdGet32(PcdCoreCount) - 1) * FixedPcdGet32(PcdCPUCoreSecondaryStackSize))
sub r10, r10, r1
// r10 = The base of the MpCore Stacks (primary stack & secondary stacks)
|