summaryrefslogtreecommitdiff
path: root/ArmPlatformPkg/PrePeiCore/Arm/SwitchStack.S
diff options
context:
space:
mode:
Diffstat (limited to 'ArmPlatformPkg/PrePeiCore/Arm/SwitchStack.S')
-rw-r--r--ArmPlatformPkg/PrePeiCore/Arm/SwitchStack.S9
1 files changed, 2 insertions, 7 deletions
diff --git a/ArmPlatformPkg/PrePeiCore/Arm/SwitchStack.S b/ArmPlatformPkg/PrePeiCore/Arm/SwitchStack.S
index 509dc205d9..c419463b4f 100644
--- a/ArmPlatformPkg/PrePeiCore/Arm/SwitchStack.S
+++ b/ArmPlatformPkg/PrePeiCore/Arm/SwitchStack.S
@@ -12,12 +12,7 @@
#
#------------------------------------------------------------------------------
-.text
-.align 3
-
-GCC_ASM_EXPORT(SecSwitchStack)
-
-
+#include <AsmMacroIoLib.h>
#/**
# This allows the caller to switch the stack and return
@@ -33,7 +28,7 @@ GCC_ASM_EXPORT(SecSwitchStack)
# VOID *StackDelta
# )#
#
-ASM_PFX(SecSwitchStack):
+ASM_FUNC(SecSwitchStack)
mov R1, R13
add R1, R0, R1
mov R13, R1