ArmPkg/SemihostLib: switch to ASM_FUNC() asm macro

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>
This commit is contained in:
Ard Biesheuvel 2016-08-10 14:39:26 +02:00
parent 903e31242d
commit 22b080c78c
2 changed files with 4 additions and 11 deletions

View File

@ -13,11 +13,8 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.text #include <AsmMacroIoLibV8.h>
.align 2
.globl ASM_PFX(GccSemihostCall) ASM_FUNC(GccSemihostCall)
ASM_PFX(GccSemihostCall):
hlt #0xf000 hlt #0xf000
ret ret

View File

@ -12,11 +12,7 @@
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
.text #include <AsmMacroIoLib.h>
.align 2
.globl ASM_PFX(GccSemihostCall)
INTERWORK_FUNC(GccSemihostCall)
/* /*
Semihosting operation request mechanism Semihosting operation request mechanism
@ -32,7 +28,7 @@ INTERWORK_FUNC(GccSemihostCall)
the svc lr register. That happens to be the one we are using, so we must the svc lr register. That happens to be the one we are using, so we must
save it or we will not be able to return. save it or we will not be able to return.
*/ */
ASM_PFX(GccSemihostCall): ASM_FUNC(GccSemihostCall)
stmfd sp!, {lr} stmfd sp!, {lr}
svc #0x123456 svc #0x123456
ldmfd sp!, {lr} ldmfd sp!, {lr}