]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPlatformPkg/PrePeiCore/Arm/PrePeiCoreEntryPoint.asm
ArmPlatformPkg/PrePeiCore: remove global variable allocation from lowlevel init
[mirror_edk2.git] / ArmPlatformPkg / PrePeiCore / Arm / PrePeiCoreEntryPoint.asm
index edf479ff43e5ff56acc881334db4ef8fd469953f..c316379f05380d6d6e8fed051d3a1b7db37d6aee 100644 (file)
@@ -84,12 +84,7 @@ _PrepareArguments
   blx   r3\r
 \r
 _SetupPrimaryCoreStack\r
-  // r1 contains the top of the primary stack\r
-  LoadConstantToReg (FixedPcdGet32(PcdPeiGlobalVariableSize), r2)\r
-\r
-  // The reserved space for global variable must be 8-bytes aligned for pushing\r
-  // 64-bit variable on the stack\r
-  SetPrimaryStack (r1, r2, r3)\r
+  mov   sp, r1\r
   b     _PrepareArguments\r
 \r
 _NeverReturn\r