]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPlatformPkg/PrePeiCore/AArch64/SwitchStack.S
ArmPlatformPkg/PrePeiCore: switch to ASM_FUNC() asm macro
[mirror_edk2.git] / ArmPlatformPkg / PrePeiCore / AArch64 / SwitchStack.S
index 8d83510517b465d215b435b53faec4634ea99205..89b98e630f5c2e4a50ab8033da26be340b9cf474 100644 (file)
 #\r
 #------------------------------------------------------------------------------\r
 \r
-.text\r
-.align 3\r
-\r
-GCC_ASM_EXPORT(SecSwitchStack)\r
-\r
-\r
+#include <AsmMacroIoLibV8.h>\r
 \r
 #/**\r
 #  This allows the caller to switch the stack and return\r
@@ -35,7 +30,7 @@ GCC_ASM_EXPORT(SecSwitchStack)
 #  VOID  *StackDelta\r
 #  )#\r
 #\r
-ASM_PFX(SecSwitchStack):\r
+ASM_FUNC(SecSwitchStack)\r
     mov   x1, sp\r
     add   x1, x0, x1\r
     mov   sp, x1\r