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 2\r
+#include <AsmMacroIoLibV8.h>\r
\r
-.globl ASM_PFX(GccSemihostCall)\r
-\r
-ASM_PFX(GccSemihostCall):\r
+ASM_FUNC(GccSemihostCall)\r
hlt #0xf000\r
ret\r
#\r
#------------------------------------------------------------------------------\r
\r
-.text\r
-.align 2\r
-\r
-.globl ASM_PFX(GccSemihostCall)\r
-INTERWORK_FUNC(GccSemihostCall)\r
+#include <AsmMacroIoLib.h>\r
\r
/*\r
Semihosting operation request mechanism\r
the svc lr register. That happens to be the one we are using, so we must\r
save it or we will not be able to return.\r
*/\r
-ASM_PFX(GccSemihostCall):\r
+ASM_FUNC(GccSemihostCall)\r
stmfd sp!, {lr}\r
svc #0x123456\r
ldmfd sp!, {lr}\r