summaryrefslogtreecommitdiffstats
path: root/ArmPkg/Library/CompilerIntrinsicsLib/Arm/switch16.S
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2016-08-10 14:38:08 +0200
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2016-08-11 12:40:51 +0200
commit903e31242d016a82a363e4281959fc1297d25769 (patch)
treee695f360c13bf33ab074a727f89ad46bd64ea9a0 /ArmPkg/Library/CompilerIntrinsicsLib/Arm/switch16.S
parent7589d9dbcfbfbe75cce4b402cdf81fed7e00b863 (diff)
downloadedk2-903e31242d016a82a363e4281959fc1297d25769.tar.gz
edk2-903e31242d016a82a363e4281959fc1297d25769.tar.bz2
edk2-903e31242d016a82a363e4281959fc1297d25769.zip
ArmPkg/CompilerIntrinsicsLib: switch to ASM_FUNC() asm macro
Annotate functions with ASM_FUNC() so that they are emitted into separate sections. Note that in some cases, various entry points refer to different parts of the same routine, so in those cases, the files have been left untouched. 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/CompilerIntrinsicsLib/Arm/switch16.S')
-rw-r--r--ArmPkg/Library/CompilerIntrinsicsLib/Arm/switch16.S8
1 files changed, 3 insertions, 5 deletions
diff --git a/ArmPkg/Library/CompilerIntrinsicsLib/Arm/switch16.S b/ArmPkg/Library/CompilerIntrinsicsLib/Arm/switch16.S
index 09c9004ddf..6de2d4513c 100644
--- a/ArmPkg/Library/CompilerIntrinsicsLib/Arm/switch16.S
+++ b/ArmPkg/Library/CompilerIntrinsicsLib/Arm/switch16.S
@@ -13,13 +13,11 @@
#**/
#
-.text
-.syntax unified
-.p2align 2
+#include <AsmMacroIoLib.h>
-GCC_ASM_EXPORT(__switch16)
+.syntax unified
-ASM_PFX(__switch16):
+ASM_FUNC(__switch16)
ldrh ip, [lr, #-1]
cmp r0, ip
add r0, lr, r0, lsl #1