]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPlatformPkg/Sec/AArch64/SecEntryPoint.S
ArmPlatformPkg/Sec: remove global variable allocation from lowlevel init
[mirror_edk2.git] / ArmPlatformPkg / Sec / AArch64 / SecEntryPoint.S
index 3512ccd84dd2636fb58f7d48ab954d7143ac26ce..000b56f573e5329950a25805c000f7ab4f05bb73 100644 (file)
@@ -99,11 +99,7 @@ _SetupPrimaryCoreStack:
   LoadConstantToReg (FixedPcdGet32(PcdCPUCoreSecPrimaryStackSize), x2)\r
   add   x1, x1, x2\r
 \r
-  LoadConstantToReg (FixedPcdGet32(PcdSecGlobalVariableSize), x2)\r
-\r
-  // The reserved space for global variable must be 8-bytes aligned for pushing\r
-  // 64-bit variable on the stack\r
-  SetPrimaryStack (x1, x2, x3, x4)\r
+  mov   sp, x1\r
   b     _PrepareArguments\r
 \r
 _SetupSecondaryCoreStack:\r