armv7a/r: add isb to cp15_invalidate_icache()

Incase invalidate_icache hasn't done

Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
ligd 2022-09-16 23:29:37 +08:00 committed by Xiang Xiao
parent 6d92810d5a
commit 3477c347e8
2 changed files with 4 additions and 0 deletions

View File

@ -339,6 +339,7 @@
.macro cp15_invalidate_icache, tmp
mov \tmp, #0
mrc p15, 0, \tmp, c7, c5, 0 /* ICIALLU */
isb
.endm
/****************************************************************************
@ -679,6 +680,7 @@ static inline void cp15_invalidate_btb_inner_sharable(void)
static inline void cp15_invalidate_icache(void)
{
CP15_SET(ICIALLU, 0);
ARM_ISB();
}
/****************************************************************************

View File

@ -346,6 +346,7 @@
.macro cp15_invalidate_icache, tmp
mov \tmp, #0
mrc p15, 0, \tmp, c7, c5, 0 /* ICIALLU */
isb
.endm
/****************************************************************************
@ -686,6 +687,7 @@ static inline void cp15_invalidate_btb_inner_sharable(void)
static inline void cp15_invalidate_icache(void)
{
CP15_SET(ICIALLU, 0);
ARM_ISB();
}
/****************************************************************************