Now that we dropped all ArmPlatformGlobalVariableLib dependencies,
there is no longer a need to allocate and clear out the global
variable region in the Sec init code. So remove it.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18995
6f19259b-4bc3-4df7-8a09-
765794883524
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
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
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
gArmTokenSpaceGuid.PcdGicDistributorBase\r
gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase\r
\r
- gArmPlatformTokenSpaceGuid.PcdSecGlobalVariableSize\r
-\r
[FixedPcd.ARM]\r
gArmTokenSpaceGuid.PcdArmNsacr\r