summaryrefslogtreecommitdiff
path: root/ArmPkg/Library/ArmHvcLib/AArch64/ArmHvc.S
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2016-08-10 14:34:17 +0200
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2016-08-11 12:29:31 +0200
commitde656e666c61d1484088d2c74d374206d36fd002 (patch)
tree9b1992420702e15fb3ac66371d48308bf0e1bd63 /ArmPkg/Library/ArmHvcLib/AArch64/ArmHvc.S
parentf0883e35dea778ffe8aa79e3fb387f197c4342a7 (diff)
downloadedk2-platforms-de656e666c61d1484088d2c74d374206d36fd002.tar.xz
ArmPkg/ArmHvcLib: 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/ArmHvcLib/AArch64/ArmHvc.S')
-rw-r--r--ArmPkg/Library/ArmHvcLib/AArch64/ArmHvc.S9
1 files changed, 3 insertions, 6 deletions
diff --git a/ArmPkg/Library/ArmHvcLib/AArch64/ArmHvc.S b/ArmPkg/Library/ArmHvcLib/AArch64/ArmHvc.S
index 99a1d21ce7..e9140a0a9b 100644
--- a/ArmPkg/Library/ArmHvcLib/AArch64/ArmHvc.S
+++ b/ArmPkg/Library/ArmHvcLib/AArch64/ArmHvc.S
@@ -1,6 +1,6 @@
//
// Copyright (c) 2012-2014, ARM Limited. All rights reserved.
-// Copyright (c) 2014, Linaro Limited. All rights reserved.
+// Copyright (c) 2014-2016, Linaro Limited. All rights reserved.
//
// This program and the accompanying materials
// are licensed and made available under the terms and conditions of the BSD License
@@ -12,12 +12,9 @@
//
//
-.text
-.align 3
+#include <AsmMacroIoLibV8.h>
-GCC_ASM_EXPORT(ArmCallHvc)
-
-ASM_PFX(ArmCallHvc):
+ASM_FUNC(ArmCallHvc)
// Push x0 on the stack - The stack must always be quad-word aligned
str x0, [sp, #-16]!