1 #------------------------------------------------------------------------------
3 # Copyright (c) 2016, Linaro Limited. All rights reserved.
5 # SPDX-License-Identifier: BSD-2-Clause-Patent
7 #------------------------------------------------------------------------------
9 #include <AsmMacroIoLibV8.h>
11 .set CTRL_M_BIT, (1 << 0)
13 .macro __replace_entry, el
17 bic x9, x8, #CTRL_M_BIT
21 // write updated entry
24 // invalidate again to get rid of stale clean cachelines that may
25 // have been filled speculatively since the last invalidate
29 // flush translations for the target address from the TLBs
44 //ArmReplaceLiveTranslationEntry (
49 ASM_FUNC(ArmReplaceLiveTranslationEntry)
56 // clean and invalidate first so that we don't clobber
57 // adjacent entries that are dirty in the caches
71 ASM_GLOBAL ASM_PFX(ArmReplaceLiveTranslationEntrySize)
73 ASM_PFX(ArmReplaceLiveTranslationEntrySize):
74 .long . - ArmReplaceLiveTranslationEntry