\r
_SetSVCMode\r
// Enter SVC mode, Disable FIQ and IRQ\r
- mov r1, #0x13|0x80|0x40\r
+ mov r1, #0x13 :OR: 0x80 :OR: 0x40\r
msr CPSR_c, r1\r
\r
// Check if we can install the stack at the top of the System Memory or if we need\r
LoadConstantToReg (FixedPcdGet32(PcdCPUCorePrimaryStackSize), r2)\r
sub r7, r1, r2\r
\r
- // Stack for the secondary core = Number of Cluster * (4 Core per cluster) * SecondaryStackSize\r
+ // Stack for the secondary core = Number of Clusters * (4 Cores per cluster) * SecondaryStackSize\r
LoadConstantToReg (FixedPcdGet32(PcdClusterCount), r2)\r
lsl r2, r2, #2\r
LoadConstantToReg (FixedPcdGet32(PcdCPUCoreSecondaryStackSize), r3)\r
// r1 = The base of the secondary Stacks\r
\r
// Get the position of the cores (ClusterId * 4) + CoreId\r
- GetCorePositionInStack(r0, r5, r4)\r
+ GetCorePositionFromMpId(r0, r5, r4)\r
// The stack starts at the top of the stack region. Add '1' to the Core Position to get the top of the stack\r
add r0, r0, #1\r
// Get the offset for the Secondary Stack\r