]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPkg/ArmHvcLib: switch to ASM_FUNC() asm macro
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 10 Aug 2016 12:34:17 +0000 (14:34 +0200)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 11 Aug 2016 10:29:31 +0000 (12:29 +0200)
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>
ArmPkg/Library/ArmHvcLib/AArch64/ArmHvc.S
ArmPkg/Library/ArmHvcLib/Arm/ArmHvc.S

index 99a1d21ce7f18f8e3fcf38cf4ac3e85f11d619d2..e9140a0a9bbae916c1f500a4f86f2e27acaacb22 100644 (file)
@@ -1,6 +1,6 @@
 //\r
 //  Copyright (c) 2012-2014, ARM Limited. All rights reserved.\r
-//  Copyright (c) 2014, Linaro Limited. All rights reserved.\r
+//  Copyright (c) 2014-2016, Linaro Limited. All rights reserved.\r
 //\r
 //  This program and the accompanying materials\r
 //  are licensed and made available under the terms and conditions of the BSD License\r
 //\r
 //\r
 \r
-.text\r
-.align 3\r
+#include <AsmMacroIoLibV8.h>\r
 \r
-GCC_ASM_EXPORT(ArmCallHvc)\r
-\r
-ASM_PFX(ArmCallHvc):\r
+ASM_FUNC(ArmCallHvc)\r
   // Push x0 on the stack - The stack must always be quad-word aligned\r
   str   x0, [sp, #-16]!\r
 \r
index 25ceb6a7d8db60f1923346cb1b44ee222f4bf71a..be4693796f320d8f934cc4778895740928743a8b 100644 (file)
@@ -1,6 +1,6 @@
 //\r
 //  Copyright (c) 2012-2014, ARM Limited. All rights reserved.\r
-//  Copyright (c) 2014, Linaro Limited. All rights reserved.\r
+//  Copyright (c) 2014-2016, Linaro Limited. All rights reserved.\r
 //\r
 //  This program and the accompanying materials\r
 //  are licensed and made available under the terms and conditions of the BSD License\r
 //\r
 //\r
 \r
-.text\r
-.align 3\r
-.arch_extension virt\r
+#include <AsmMacroIoLibV8.h>\r
 \r
-GCC_ASM_EXPORT(ArmCallHvc)\r
+.arch_extension virt\r
 \r
-ASM_PFX(ArmCallHvc):\r
+ASM_FUNC(ArmCallHvc)\r
     push    {r4-r8}\r
     // r0 will be popped just after the HVC call\r
     push    {r0}\r