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>
This commit is contained in:
Ard Biesheuvel 2016-08-10 14:35:38 +02:00
parent 0efaa42f6e
commit e4d37ada01
1 changed files with 1 additions and 3 deletions

View File

@ -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