]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPlatformPkg/Sec/SecEntryPoint.S
ArmPlatformPkg: Minor code changes (comments, misspellings, coding stylei, line endings)
[mirror_edk2.git] / ArmPlatformPkg / Sec / SecEntryPoint.S
index f92a2dffbaf9dd6de892aaf65855513a3d05b2b6..6d3eb365319a8a9085c70ffb2517d463bf5510e9 100644 (file)
@@ -42,7 +42,7 @@ ASM_PFX(_ModuleEntryPoint):
   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
@@ -86,11 +86,10 @@ _SetupPrimaryCoreStack:
   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