]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPlatformPkg/PrePeiCore/PrePeiCoreEntryPoint.asm
ArmPlatformPkg: Fix Global Variable region initialization when GlobalVariable's size...
[mirror_edk2.git] / ArmPlatformPkg / PrePeiCore / PrePeiCoreEntryPoint.asm
index f6d84b5f26e9cda2bccab9e6e59580dfa1f1cbc1..ce3be2772ba44a88dc80050751abcbfdd6822965 100644 (file)
@@ -72,9 +72,10 @@ _SetupPrimaryCoreStack
   mov   r3, sp\r
   mov   r1, #0x0\r
 _InitGlobals\r
-  str   r1, [r3], #4\r
   cmp   r3, r2\r
-  bne   _InitGlobals\r
+  beq   _PrepareArguments\r
+  str   r1, [r3], #4\r
+  b     _InitGlobals\r
 \r
 _PrepareArguments\r
   // The PEI Core Entry Point has been computed by GenFV and stored in the second entry of the Reset Vector\r