summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2016-08-10 14:35:38 +0200
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2016-08-11 12:29:31 +0200
commite4d37ada015fe4808eb451730bfa49167a6e3cbc (patch)
tree908e2b744527734a5a6bad1f611cce5bd85d513e
parent0efaa42f6e0677a64ca8c952eae64333b61f19d3 (diff)
downloadedk2-e4d37ada015fe4808eb451730bfa49167a6e3cbc.tar.gz
edk2-e4d37ada015fe4808eb451730bfa49167a6e3cbc.tar.bz2
edk2-e4d37ada015fe4808eb451730bfa49167a6e3cbc.zip
ArmPkg/ArmMmuLib: 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>
-rw-r--r--ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuLibReplaceEntry.S4
1 files changed, 1 insertions, 3 deletions
diff --git a/ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuLibReplaceEntry.S b/ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuLibReplaceEntry.S
index 3834da7bfe..90192df24f 100644
--- a/ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuLibReplaceEntry.S
+++ b/ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuLibReplaceEntry.S
@@ -14,8 +14,6 @@
#include <AsmMacroIoLibV8.h>
-GCC_ASM_EXPORT(ArmReplaceLiveTranslationEntry)
-
.set CTRL_M_BIT, (1 << 0)
.macro __replace_entry, el
@@ -52,7 +50,7 @@ GCC_ASM_EXPORT(ArmReplaceLiveTranslationEntry)
// IN UINT64 *Entry,
// IN UINT64 Value
// )
-ASM_PFX(ArmReplaceLiveTranslationEntry):
+ASM_FUNC(ArmReplaceLiveTranslationEntry)
// disable interrupts
mrs x2, daif