summaryrefslogtreecommitdiffstats
path: root/ArmPkg/Library/ArmSmcLib/AArch64
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2016-08-10 14:36:47 +0200
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2016-08-11 12:29:31 +0200
commit86a4d91bda59be0a8880983e159795b16f577292 (patch)
tree5df36de1d30359d6bd017a5f30fc14e3902bc11b /ArmPkg/Library/ArmSmcLib/AArch64
parente4d37ada015fe4808eb451730bfa49167a6e3cbc (diff)
downloadedk2-86a4d91bda59be0a8880983e159795b16f577292.tar.gz
edk2-86a4d91bda59be0a8880983e159795b16f577292.tar.bz2
edk2-86a4d91bda59be0a8880983e159795b16f577292.zip
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>
Diffstat (limited to 'ArmPkg/Library/ArmSmcLib/AArch64')
-rw-r--r--ArmPkg/Library/ArmSmcLib/AArch64/ArmSmc.S7
1 files changed, 2 insertions, 5 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 <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]!