blx ASM_PFX(ArmPlatformSecBootAction)\r
\r
// Set VBAR to the start of the exception vectors in Secure Mode\r
- ldr r0, =SecVectorTable\r
+ LoadConstantToReg (ASM_PFX(SecVectorTable), r0)\r
bl ASM_PFX(ArmWriteVBar)\r
\r
_IdentifyCpu:\r
mov r3, sp\r
mov r1, #0x0\r
_InitGlobals:\r
- str r1, [r3], #4\r
cmp r3, r2\r
- blt _InitGlobals\r
-\r
- b _PrepareArguments\r
+ beq _PrepareArguments\r
+ str r1, [r3], #4\r
+ b _InitGlobals\r
\r
_SetupSecondaryCoreStack:\r
// Get the Core Position (ClusterId * 4) + CoreId\r