Annotate functions with ASM_FUNC() so that they are emitted into
separate sections.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
//\r
//\r
\r
-.text\r
-.align 3\r
+#include <AsmMacroIoLibV8.h>\r
\r
-GCC_ASM_EXPORT(ArmCallSmc)\r
-\r
-ASM_PFX(ArmCallSmc):\r
+ASM_FUNC(ArmCallSmc)\r
// Push x0 on the stack - The stack must always be quad-word aligned\r
str x0, [sp, #-16]!\r
\r
//\r
//\r
\r
-.text\r
-.align 3\r
-.arch_extension sec\r
+#include <AsmMacroIoLibV8.h>\r
\r
-GCC_ASM_EXPORT(ArmCallSmc)\r
+.arch_extension sec\r
\r
-ASM_PFX(ArmCallSmc):\r
+ASM_FUNC(ArmCallSmc)\r
push {r4-r8}\r
// r0 will be popped just after the SMC call\r
push {r0}\r