1 #------------------------------------------------------------------------------
3 # Copyright (c) 2016, Linaro Limited. All rights reserved.
5 # This program and the accompanying materials
6 # are licensed and made available under the terms and conditions of the BSD License
7 # which accompanies this distribution. The full text of the license may be found at
8 # http://opensource.org/licenses/bsd-license.php
10 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13 #------------------------------------------------------------------------------
15 #include <AsmMacroIoLibV8.h>
17 .set CTRL_M_BIT, (1 << 0)
19 .macro __replace_entry, el
23 bic x9, x8, #CTRL_M_BIT
27 // write updated entry
30 // invalidate again to get rid of stale clean cachelines that may
31 // have been filled speculatively since the last invalidate
49 //ArmReplaceLiveTranslationEntry (
53 ASM_FUNC(ArmReplaceLiveTranslationEntry)
60 // clean and invalidate first so that we don't clobber
61 // adjacent entries that are dirty in the caches
75 ASM_GLOBAL ASM_PFX(ArmReplaceLiveTranslationEntrySize)
77 ASM_PFX(ArmReplaceLiveTranslationEntrySize):
78 .long . - ArmReplaceLiveTranslationEntry