]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPlatformPkg/Sec/Arm/SecEntryPoint.asm
ArmPlatformPkg/Sec: remove global variable allocation from lowlevel init
[mirror_edk2.git] / ArmPlatformPkg / Sec / Arm / SecEntryPoint.asm
index b30fab2141feebe324b381f49aecd29e29e191d0..c0cd4106999174b14c8c0a01e7dc45657174da17 100644 (file)
@@ -83,11 +83,7 @@ _SetupPrimaryCoreStack
   LoadConstantToReg (FixedPcdGet32(PcdCPUCoreSecPrimaryStackSize), r2)\r
   add   r1, r1, r2\r
 \r
-  LoadConstantToReg (FixedPcdGet32(PcdSecGlobalVariableSize), 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
 _SetupSecondaryCoreStack\r