diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-08-10 14:38:08 +0200 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-08-11 12:40:51 +0200 |
commit | 903e31242d016a82a363e4281959fc1297d25769 (patch) | |
tree | e695f360c13bf33ab074a727f89ad46bd64ea9a0 /ArmPkg/Library/CompilerIntrinsicsLib/Arm/switchu8.S | |
parent | 7589d9dbcfbfbe75cce4b402cdf81fed7e00b863 (diff) | |
download | edk2-platforms-903e31242d016a82a363e4281959fc1297d25769.tar.xz |
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/switchu8.S')
-rw-r--r-- | ArmPkg/Library/CompilerIntrinsicsLib/Arm/switchu8.S | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/ArmPkg/Library/CompilerIntrinsicsLib/Arm/switchu8.S b/ArmPkg/Library/CompilerIntrinsicsLib/Arm/switchu8.S index 5849998eaf..7c94dd4fad 100644 --- a/ArmPkg/Library/CompilerIntrinsicsLib/Arm/switchu8.S +++ b/ArmPkg/Library/CompilerIntrinsicsLib/Arm/switchu8.S @@ -13,14 +13,11 @@ #**/
#
-.text
-.syntax unified
-.p2align 2
-
-GCC_ASM_EXPORT(__switchu8)
+#include <AsmMacroIoLib.h>
+.syntax unified
-ASM_PFX(__switchu8):
+ASM_FUNC(__switchu8)
ldrb ip,[lr,#-1]
cmp r0,ip
ldrbcc r0,[lr,r0]
|