ArmPkg/ArmSmcLib: 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:36:47 +02:00
parent e4d37ada01
commit 86a4d91bda
2 changed files with 5 additions and 10 deletions

View File

@ -11,12 +11,9 @@
//
//
.text
.align 3
#include <AsmMacroIoLibV8.h>
GCC_ASM_EXPORT(ArmCallSmc)
ASM_PFX(ArmCallSmc):
ASM_FUNC(ArmCallSmc)
// Push x0 on the stack - The stack must always be quad-word aligned
str x0, [sp, #-16]!

View File

@ -11,13 +11,11 @@
//
//
.text
.align 3
#include <AsmMacroIoLibV8.h>
.arch_extension sec
GCC_ASM_EXPORT(ArmCallSmc)
ASM_PFX(ArmCallSmc):
ASM_FUNC(ArmCallSmc)
push {r4-r8}
// r0 will be popped just after the SMC call
push {r0}