\r
// Convert the (ClusterId,CoreId) into a Core Position\r
// We assume there are 4 cores per cluster\r
-#define GetCorePositionInStack(Pos, MpId, Tmp) \\r
+#define GetCorePositionFromMpId(Pos, MpId, Tmp) \\r
lsr Pos, MpId, #6 ; \\r
and Tmp, MpId, #3 ; \\r
add Pos, Pos, Tmp\r
#define LoadConstantToReg(Data, Reg) \\r
ldr Reg, =Data\r
\r
-#define GetCorePositionInStack(Pos, MpId, Tmp) \\r
+#define GetCorePositionFromMpId(Pos, MpId, Tmp) \\r
lsr Pos, MpId, #6 ; \\r
and Tmp, MpId, #3 ; \\r
add Pos, Pos, Tmp\r
// conditional load testing eq flag\r
#define LoadConstantToRegIfEq(Data, Reg) LoadConstantToRegIfEqMacro Data, Reg\r
\r
-#define GetCorePositionInStack(Pos, MpId, Tmp) GetCorePositionInStack Pos, MpId, Tmp\r
+#define GetCorePositionFromMpId(Pos, MpId, Tmp) GetCorePositionFromMpId Pos, MpId, Tmp\r
\r
#define SetPrimaryStack(StackTop,GlobalSize,Tmp) SetPrimaryStack StackTop, GlobalSize, Tmp\r
\r
MEND \r
\r
MACRO\r
- GetCorePositionInStack $Pos, $MpId, $Tmp\r
+ GetCorePositionFromMpId $Pos, $MpId, $Tmp\r
lsr $Pos, $MpId, #6\r
and $Tmp, $MpId, #3\r
add $Pos, $Pos, $Tmp\r
// r1 contains the base of the secondary stacks\r
\r
// Get the Core Position (ClusterId * 4) + CoreId\r
- GetCorePositionInStack(r0, r5, r2)\r
+ GetCorePositionFromMpId(r0, r5, r2)\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
\r
// r1 contains the base of the secondary stacks\r
\r
// Get the Core Position (ClusterId * 4) + CoreId\r
- GetCorePositionInStack(r0, r5, r2)\r
+ GetCorePositionFromMpId(r0, r5, r2)\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
\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
// 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
add r1, r1, r2\r
\r
// Get the Core Position (ClusterId * 4) + CoreId\r
- GetCorePositionInStack(r0, r5, r2)\r
+ GetCorePositionFromMpId(r0, r5, r2)\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
\r
add r1, r1, r2\r
\r
// Get the Core Position (ClusterId * 4) + CoreId\r
- GetCorePositionInStack(r0, r5, r2)\r
+ GetCorePositionFromMpId(r0, r5, r2)\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
\r