mirror of https://github.com/acidanthera/audk.git
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:
parent
e4d37ada01
commit
86a4d91bda
|
@ -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]!
|
||||
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue