//\r
\r
// Calculate how much space there is between the top of the Firmware and the Top of the System Memory\r
- subs r0, r1, r3 // r0 = SystemMemoryTop - FdTop\r
- bmi _SetupStack // Jump if negative (FdTop > SystemMemoryTop). Case when the PrePi is in XIP memory outside of the DRAM\r
- cmp r0, r4\r
- bge _SetupStack\r
+ subs r0, r1, r3 // r0 = SystemMemoryTop - FdTop\r
+ bmi _SetupStack // Jump if negative (FdTop > SystemMemoryTop). Case when the PrePi is in XIP memory outside of the DRAM\r
+ cmp r0, r4\r
+ bge _SetupStack\r
\r
// Case the top of stacks is the FdBaseAddress\r
- mov r1, r2\r
+ mov r1, r2\r
\r
_SetupStack\r
// r1 contains the top of the stack (and the UEFI Memory)\r
\r
// Stack for the secondary core = Number of Cores - 1\r
LoadConstantToReg (FixedPcdGet32(PcdCoreCount), r0)\r
- sub r0, r0, #1\r
+ sub r0, r0, #1\r
LoadConstantToReg (FixedPcdGet32(PcdCPUCoreSecondaryStackSize), r1)\r
mul r1, r1, r0\r
sub r10, r10, r1\r
\r
// r10 = The base of the MpCore Stacks (primary stack & secondary stacks)\r
- mov r0, r10\r
- mov r1, r8\r
+ mov r0, r10\r
+ mov r1, r8\r
//ArmPlatformStackSet(StackBase, MpId, PrimaryStackSize, SecondaryStackSize)\r
LoadConstantToReg (FixedPcdGet32(PcdCPUCorePrimaryStackSize), r2)\r
LoadConstantToReg (FixedPcdGet32(PcdCPUCoreSecondaryStackSize), r3)\r
- bl ArmPlatformStackSet\r
+ bl ArmPlatformStackSet\r
\r
// Is it the Primary Core ?\r
mov r0, r8\r