diff options
author | Ryan Harkin <ryan.harkin@linaro.org> | 2016-09-07 12:05:18 +0100 |
---|---|---|
committer | Ryan Harkin <ryan.harkin@linaro.org> | 2016-09-07 12:10:24 +0100 |
commit | cdc938de3b0faa44452c16fa57cf6470c129ad3e (patch) | |
tree | dc518ef84e1968afa574ae1e4b889788e55180ca | |
parent | d297ecd91c16fb5d4d522e41f476cf2ec54eca71 (diff) |
fix ArmPlatformPkg/PrePi: switch to ASM_FUNC() asm macro20160907-002
The following commit contains a bug:
commit d2fa09a1348738a770f7a7dcb1ec020e6b3a3d0c
Author: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Date: Wed Aug 10 16:04:27 2016 +0200
ArmPlatformPkg/PrePi: switch to ASM_FUNC() asm macro
Michael Zimmerman discovered the bug and posted this fix to the EDK2
mailing list.
I'm hosting this patch until the bug fix appears in the tre..
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-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)
|