From 86a4d91bda59be0a8880983e159795b16f577292 Mon Sep 17 00:00:00 2001 From: Ard Biesheuvel Date: Wed, 10 Aug 2016 14:36:47 +0200 Subject: 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 Reviewed-by: Leif Lindholm --- ArmPkg/Library/ArmSmcLib/AArch64/ArmSmc.S | 7 ++----- ArmPkg/Library/ArmSmcLib/Arm/ArmSmc.S | 8 +++----- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/ArmPkg/Library/ArmSmcLib/AArch64/ArmSmc.S b/ArmPkg/Library/ArmSmcLib/AArch64/ArmSmc.S index 46c17674c1..a8dbb911de 100644 --- a/ArmPkg/Library/ArmSmcLib/AArch64/ArmSmc.S +++ b/ArmPkg/Library/ArmSmcLib/AArch64/ArmSmc.S @@ -11,12 +11,9 @@ // // -.text -.align 3 +#include -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]! diff --git a/ArmPkg/Library/ArmSmcLib/Arm/ArmSmc.S b/ArmPkg/Library/ArmSmcLib/Arm/ArmSmc.S index 260fb10fe8..afb2e9bc90 100644 --- a/ArmPkg/Library/ArmSmcLib/Arm/ArmSmc.S +++ b/ArmPkg/Library/ArmSmcLib/Arm/ArmSmc.S @@ -11,13 +11,11 @@ // // -.text -.align 3 -.arch_extension sec +#include -GCC_ASM_EXPORT(ArmCallSmc) +.arch_extension sec -ASM_PFX(ArmCallSmc): +ASM_FUNC(ArmCallSmc) push {r4-r8} // r0 will be popped just after the SMC call push {r0} -- cgit v1.2.3