]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPlatformPkg/PrePeiCore/Arm/PrePeiCoreEntryPoint.S
ArmPlatformPkg/PrePeiCore: remove global variable allocation from lowlevel init
[mirror_edk2.git] / ArmPlatformPkg / PrePeiCore / Arm / PrePeiCoreEntryPoint.S
index a6f19aff0f8ef1f7122b404d0a3d221485bc82d1..ba1bd09b67c7a54e2e30077c112d43da4c2b7df0 100644 (file)
@@ -82,12 +82,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