]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPlatformPkg/PrePeiCore/AArch64/PrePeiCoreEntryPoint.S
ArmPlatformPkg/PrePeiCore: remove global variable allocation from lowlevel init
[mirror_edk2.git] / ArmPlatformPkg / PrePeiCore / AArch64 / PrePeiCoreEntryPoint.S
index b84190cf3fd48fd9d028b9c4950fc406ea07d33c..85d3450f62e4669fdd9dc95bee9b2f61a2e50694 100644 (file)
@@ -101,10 +101,5 @@ _PrepareArguments:
   blr   x3\r
 \r
 _SetupPrimaryCoreStack:\r
-  // x1 contains the top of the primary stack\r
-  LoadConstantToReg (FixedPcdGet32(PcdPeiGlobalVariableSize), x2)\r
-\r
-  // The reserved space for global variable must be 16-bytes aligned for pushing\r
-  // 128-bit variable on the stack\r
-  SetPrimaryStack (x1, x2, x3, x4)\r
+  mov   sp, x1\r
   b     _PrepareArguments\r