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:
@@ -11,12 +11,9 @@
|
|||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
|
||||||
.text
|
#include <AsmMacroIoLibV8.h>
|
||||||
.align 3
|
|
||||||
|
|
||||||
GCC_ASM_EXPORT(ArmCallSmc)
|
ASM_FUNC(ArmCallSmc)
|
||||||
|
|
||||||
ASM_PFX(ArmCallSmc):
|
|
||||||
// Push x0 on the stack - The stack must always be quad-word aligned
|
// Push x0 on the stack - The stack must always be quad-word aligned
|
||||||
str x0, [sp, #-16]!
|
str x0, [sp, #-16]!
|
||||||
|
|
||||||
|
@@ -11,13 +11,11 @@
|
|||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
|
||||||
.text
|
#include <AsmMacroIoLibV8.h>
|
||||||
.align 3
|
|
||||||
.arch_extension sec
|
.arch_extension sec
|
||||||
|
|
||||||
GCC_ASM_EXPORT(ArmCallSmc)
|
ASM_FUNC(ArmCallSmc)
|
||||||
|
|
||||||
ASM_PFX(ArmCallSmc):
|
|
||||||
push {r4-r8}
|
push {r4-r8}
|
||||||
// r0 will be popped just after the SMC call
|
// r0 will be popped just after the SMC call
|
||||||
push {r0}
|
push {r0}
|
||||||
|
Reference in New Issue
Block a user