summaryrefslogtreecommitdiffstats
path: root/ArmPkg/Include/AsmMacroIoLib.inc
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2015-11-27 17:11:03 +0000
committerabiesheuvel <abiesheuvel@Edk2>2015-11-27 17:11:03 +0000
commitec613395d114ed6f7c13249a199d1e9cc0025326 (patch)
tree19c4fc1700a3fb3166ab74b13e49e16a949e2f4f /ArmPkg/Include/AsmMacroIoLib.inc
parent5963858c67e4be5bdf277e2aadfbb573a85057cd (diff)
downloadedk2-ec613395d114ed6f7c13249a199d1e9cc0025326.tar.gz
edk2-ec613395d114ed6f7c13249a199d1e9cc0025326.tar.bz2
edk2-ec613395d114ed6f7c13249a199d1e9cc0025326.zip
ArmPkg: remove SetPrimaryStack and InitializePrimaryStack macros
The SetPrimaryStack and InitializePrimaryStack macros are no longer used now that we removed support for ArmPlatformGlobalVariableLib. So remove the various versions of them. 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@19004 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPkg/Include/AsmMacroIoLib.inc')
-rw-r--r--ArmPkg/Include/AsmMacroIoLib.inc38
1 files changed, 0 insertions, 38 deletions
diff --git a/ArmPkg/Include/AsmMacroIoLib.inc b/ArmPkg/Include/AsmMacroIoLib.inc
index 301bd890ac..95dc640d6f 100644
--- a/ArmPkg/Include/AsmMacroIoLib.inc
+++ b/ArmPkg/Include/AsmMacroIoLib.inc
@@ -80,42 +80,4 @@
ldr $Reg, =($Data)
MEND
- ; The reserved place must be 8-bytes aligned for pushing 64-bit variable on the stack
- ; Note: Global Size will be modified
- MACRO
- SetPrimaryStack $StackTop, $GlobalSize, $Tmp
- and $Tmp, $GlobalSize, #7
- rsbne $Tmp, $Tmp, #8
- add $GlobalSize, $GlobalSize, $Tmp
- sub sp, $StackTop, $GlobalSize
-
- ; Set all the global variables to 0
- mov $Tmp, sp
- mov $GlobalSize, #0x0
-_SetPrimaryStackInitGlobals
- cmp $Tmp, $StackTop
- beq _SetPrimaryStackEnd
- str $GlobalSize, [$Tmp], #4
- b _SetPrimaryStackInitGlobals
-_SetPrimaryStackEnd
- MEND
-
- MACRO
- InitializePrimaryStack $GlobalSize, $Tmp1
- and $Tmp1, $GlobalSize, #7
- rsbne $Tmp1, $Tmp1, #8
- add $GlobalSize, $GlobalSize, $Tmp1
-
- mov $Tmp1, sp
- sub sp, $GlobalSize
- ; Set all the global variables to 0
- mov $GlobalSize, #0x0
-_InitializePrimaryStackLoop
- cmp $Tmp1, sp
- bls _InitializePrimaryStackEnd
- str $GlobalSize, [$Tmp1, #-4]!
- b _InitializePrimaryStackLoop
-_InitializePrimaryStackEnd
- MEND
-
END